Changeset 1bff5a7b


Ignore:
Timestamp:
Jul 17, 2009 4:28:38 PM (11 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
a43df30
Parents:
ec49d9b
Message:

Visual overhaul of config pages.

Location:
apps/routerconsole/jsp
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/configadvanced.jsp

    rec49d9b r1bff5a7b  
    2323 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    2424 <jsp:getProperty name="formhandler" property="allMessages" />
    25  
     25 <div class="configure">
    2626 <form action="configadvanced.jsp" method="POST">
    2727 <% String prev = System.getProperty("net.i2p.router.web.ConfigAdvancedHandler.nonce");
     
    3030 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigAdvancedHandler.nonce")%>" />
    3131 <input type="hidden" name="action" value="blah" />
    32  <textarea rows="32" cols="100" name="config" wrap="off"><jsp:getProperty name="advancedhelper" property="settings" /></textarea><br />
    33 <p>
    34  <input type="submit" name="shouldsave" value="Apply" /> <input type="reset" value="Cancel" />
    35 </p><p>
     32 <textarea rows="32" cols="100" name="config" wrap="off"><jsp:getProperty name="advancedhelper" property="settings" /></textarea><br /><hr>
     33      <p align="right">
     34        <input type="submit" name="shouldsave" value="Apply" />
     35        <input type="reset" value="Cancel" />
     36      </p>
     37      <p>
    3638 NOTE: Some changes may require a restart to take effect.
    3739</p>
    3840 </form>
    3941</div>
     42</div>
    4043</body>
    4144</html>
  • apps/routerconsole/jsp/configclients.jsp

    rec49d9b r1bff5a7b  
    2828 <jsp:setProperty name="formhandler" property="settings" value="<%=request.getParameterMap()%>" />
    2929 <jsp:getProperty name="formhandler" property="allMessages" />
    30  
     30 <div class="configure">
    3131 <form action="configclients.jsp" method="POST">
    3232 <% String prev = System.getProperty("net.i2p.router.web.ConfigClientsHandler.nonce");
     
    5858 </p><p>
    5959 <jsp:getProperty name="clientshelper" property="form2" />
    60  </p><p>
     60 </p><p><hr>
    6161 <input type="submit" name="action" value="Save WebApp Configuration" />
    62  </p><p>
     62 </p><hr><p>
    6363 <i>All changes require restart to take effect. To change other webapp options, edit the webapps.config file.</i>
    6464 </p>
    6565 </form>
    6666</div>
    67 
     67</div>
    6868</body>
    6969</html>
  • apps/routerconsole/jsp/configkeyring.jsp

    rec49d9b r1bff5a7b  
    2323 <jsp:useBean class="net.i2p.router.web.ConfigKeyringHelper" id="keyringhelper" scope="request" />
    2424 <jsp:setProperty name="keyringhelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    25 
     25<div class="configure">
    2626 <p>
    2727 <h2>Keyring</h2>
     
    4242 Keys for local destinations must be entered on the <a href="i2ptunnel/index.jsp">I2PTunnel page</a>.
    4343 <p>
    44  <table>
    45  <tr><td>Dest. name, hash, or full key:
    46  <td><textarea name="peer" cols="44" rows="1" style="height: 3em;" wrap="off"></textarea>
    47  <tr><td align="right">Session Key:
    48  <td><input type="text" size="55" name="key" />
    49  <tr><td><td><input type="submit" name="action" value="Add key" />
    50  </table>
     44      <table>
     45        <tr>
     46          <td>Dest. name, hash, or full key:
     47          <td><textarea name="peer" cols="44" rows="1" style="height: 3em;" wrap="off"></textarea>
     48        <tr>
     49          <td align="right">Session Key:
     50          <td><input type="text" size="55" name="key" />
     51        <tr>
     52          <td>
     53          <td><div align="right">
     54              <input type="submit" name="action" value="Add key" />
     55            </div>
     56      </table>
    5157 </form>
    5258
    5359
    5460</div>
    55 
     61</div>
    5662</body>
    5763</html>
  • apps/routerconsole/jsp/configlogging.jsp

    rec49d9b r1bff5a7b  
    2020 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    2121 <jsp:getProperty name="formhandler" property="allMessages" />
    22  
     22<div class="configure"> 
    2323 <form action="configlogging.jsp" method="POST">
    2424 <% String prev = System.getProperty("net.i2p.router.web.ConfigLoggingHandler.nonce");
     
    2727 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigLoggingHandler.nonce")%>" />
    2828 <input type="hidden" name="action" value="blah" />
    29  <table border="0" cellspacing="5">
    30  <tr><td valign="top"><b>Logging filename:</b>
    31  <td><input type="text" name="logfilename" size="40" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" /><br />
    32  <i>(the symbol '@' will be replaced during log rotation)</i>
    33  <tr><td valign="top"><b>Log record format:</b>
    34  <td><input type="text" name="logformat" size="20" value="<jsp:getProperty name="logginghelper" property="recordPattern" />" /><br />
    35  <i>(use 'd' = date, 'c' = class, 't' = thread, 'p' = priority, 'm' = message)</i>
    36  <tr><td valign="top"><b>Log date format:</b>
    37  <td><input type="text" name="logdateformat" size="20" value="<jsp:getProperty name="logginghelper" property="datePattern" />" /><br />
    38  <i>('MM' = month, 'dd' = day, 'HH' = hour, 'mm' = minute, 'ss' = second, 'SSS' = millisecond)</i>
    39  <tr><td valign="top"><b>Max log file size:</b>
    40  <td><input type="text" name="logfilesize" size="4" value="<jsp:getProperty name="logginghelper" property="maxFileSize" />" /><br />
    41  <tr><td valign="top"><b>Default log level:</b>
    42  <td><jsp:getProperty name="logginghelper" property="defaultLogLevelBox" />
    43  <br /><i>(DEBUG and INFO are not recommended defaults, as they will drastically slow down your router)</i>
    44  <tr><td valign="top"><b>Log level overrides:</b>
    45  <td><jsp:getProperty name="logginghelper" property="logLevelTable" />
    46  <tr><td><td>
    47  <input type="submit" name="shouldsave" value="Save changes" />
    48  <input type="reset" value="Cancel" />
    49  </table>
     29      <table border="0" cellspacing="5">
     30        <tr>
     31          <td valign="top"><b>Logging filename:</b>
     32          <td><input type="text" name="logfilename" size="40" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" />
     33            <br /> <i>(the symbol '@' will be replaced during log rotation)</i>
     34        <tr>
     35          <td valign="top"><b>Log record format:</b>
     36          <td><input type="text" name="logformat" size="20" value="<jsp:getProperty name="logginghelper" property="recordPattern" />" />
     37            <br /> <i>(use 'd' = date, 'c' = class, 't' = thread, 'p' = priority,
     38            'm' = message)</i>
     39        <tr>
     40          <td valign="top"><b>Log date format:</b>
     41          <td><input type="text" name="logdateformat" size="20" value="<jsp:getProperty name="logginghelper" property="datePattern" />" />
     42            <br /> <i>('MM' = month, 'dd' = day, 'HH' = hour, 'mm' = minute, 'ss'
     43            = second, 'SSS' = millisecond)</i>
     44        <tr>
     45          <td valign="top"><b>Max log file size:</b>
     46          <td><input type="text" name="logfilesize" size="4" value="<jsp:getProperty name="logginghelper" property="maxFileSize" />" />
     47            <br />
     48        <tr>
     49          <td valign="top"><b>Default log level:</b>
     50          <td><jsp:getProperty name="logginghelper" property="defaultLogLevelBox" /> <br /> <i>(DEBUG and INFO are not recommended defaults,
     51            as they will drastically slow down your router)</i>
     52        <tr>
     53          <td valign="top"><b>Log level overrides:</b>
     54          <td><jsp:getProperty name="logginghelper" property="logLevelTable" />
     55        <tr>
     56          <td colspan="2" valign="top"><hr>
     57        <tr>
     58          <td>
     59          <td> <div align="right">
     60              <input type="submit" name="shouldsave" value="Save changes" />
     61              <input type="reset" value="Cancel" />
     62            </div>
     63      </table>
    5064 </form>
    5165</div>
    52 
     66</div>
    5367</body>
    5468</html>
  • apps/routerconsole/jsp/configpeer.jsp

    rec49d9b r1bff5a7b  
    2828        peer = request.getParameter("peer");
    2929 %>
    30  
     30 <div class="configure">
    3131 <form action="configpeer.jsp" method="POST">
    3232 <% String prev = System.getProperty("net.i2p.router.web.ConfigPeerHandler.nonce");
     
    4343 <input type="text" size="55" name="peer" value="<%=peer%>" />
    4444 <h3>Manually Shitlist / Unshitlist a Router</h3>
    45  Shitlisting will prevent the participation of this peer in tunnels you create.
    46  <p>
     45 Shitlisting will prevent the participation of this peer in tunnels you create.
     46      <hr />
     47      <p>
    4748 <input type="submit" name="action" value="Shitlist peer until restart" />
    4849 <input type="submit" name="action" value="Unshitlist peer" />
     
    5354
    5455 <h3>Adjust Profile Bonuses</h3>
    55  Bonuses may be positive or negative, and affect the peer's inclusion in Fast and High Capacity tiers.
    56  Fast peers are used for client tunnels, and High Capacity peers are used for some exploratory tunnels.
    57  Current bonuses are displayed on the <a href="profiles.jsp">profiles page</a>.
    58  <p>
     56 Bonuses may be positive or negative, and affect the peer's inclusion in Fast
     57      and High Capacity tiers. Fast peers are used for client tunnels, and High
     58      Capacity peers are used for some exploratory tunnels. Current bonuses are
     59      displayed on the <a href="profiles.jsp">profiles page</a>.
     60      <hr />
     61      <p>
    5962 <% long speed = 0; long capacity = 0;
    6063    if (! "".equals(peer)) {
     
    8083
    8184</div>
    82 
     85</div>
    8386</body>
    8487</html>
  • apps/routerconsole/jsp/configservice.jsp

    rec49d9b r1bff5a7b  
    1818 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    1919 <jsp:getProperty name="formhandler" property="allMessages" />
    20  
     20 <div class="configure">
    2121 <form action="configservice.jsp" method="POST">
    2222 <% String prev = System.getProperty("net.i2p.router.web.ConfigServiceHandler.nonce");
     
    8383 </form><hr>
    8484</div>
    85 
     85</div>
    8686</body>
    8787</html>
  • apps/routerconsole/jsp/configstats.jsp

    rec49d9b r1bff5a7b  
    6666 <jsp:useBean class="net.i2p.router.web.ConfigStatsHelper" id="statshelper" scope="request" />
    6767 <jsp:setProperty name="statshelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    68  <div class="caonfigure">
     68 <div class="configure">
    6969 <form id="statsForm" name="statsForm" action="configstats.jsp" method="POST">
    7070 <% String prev = System.getProperty("net.i2p.router.web.ConfigStatsHandler.nonce");
  • apps/routerconsole/jsp/configupdate.jsp

    rec49d9b r1bff5a7b  
    2121 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
    2222 <jsp:setProperty name="updatehelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
    23  
    24  <br /><i><jsp:getProperty name="updatehelper" property="newsStatus" /></i><br />&nbsp;<br />
     23<div class="messages">
     24<i><jsp:getProperty name="updatehelper" property="newsStatus" /></i></div>
     25<div class="configure">
    2526 <form action="configupdate.jsp" method="POST">
    2627 <% String prev = System.getProperty("net.i2p.router.web.ConfigUpdateHandler.nonce");
     
    2829    System.setProperty("net.i2p.router.web.ConfigUpdateHandler.nonce", new java.util.Random().nextLong()+""); %>
    2930 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigUpdateHandler.nonce")%>" />
    30 <table border="0" cellspacing="5"><tr><td colspan="2"></tr><tr><td><b>News:</b></td><td>
    31  <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %>
    32  <i>Update In Progress</i><br />
    33  <% } else { %>
    34  <input type="submit" name="action" value="Check for update now" />
    35 <% } %></tr>
    36 <tr><td colspan="2"><hr /></td></tr>
    37 <tr><td><b>News URL:</b></td>
    38 <td><input type="text" size="60" name="newsURL" value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td></tr>
    39 <tr><td><b>Refresh frequency:</b>
    40 <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" />
    41 <tr><td><b>Update policy:</b>
    42 <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" />
    43 <tr><td><b>Update through the eepProxy?</b>
    44 <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" />
    45 <tr><td><b>eepProxy host:</b>
    46 <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" />
    47 <tr><td><b>eepProxy port:</b>
    48 <td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" />
    49 <tr><td><b>Update URLs:</b>
    50 <td><textarea name="updateURL" wrap="off"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea>
    51 <tr><td><b>Trusted keys:</b>
    52 <td><textarea name="trustedKeys" wrap="off"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea>
    53 <tr><tr><td colspan="2"><hr /><tr>
    54 <tr><td><td><input type="submit" name="action" value="Save" /> <input type="reset" value="Cancel" />
    55 </table>
     31      <table border="0" cellspacing="5">
     32        <tr>
     33          <td colspan="2"></tr>
     34        <tr>
     35          <td><b>News:</b></td>
     36          <td> <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %> <i>Update In Progress</i><br /> <% } else { %> <input type="submit" name="action" value="Check for update now" />
     37            <% } %></tr>
     38        <tr>
     39          <td colspan="2"><hr /></td>
     40        </tr>
     41        <tr>
     42          <td><b>News URL:</b></td>
     43          <td><input type="text" size="60" name="newsURL" value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td>
     44        </tr>
     45        <tr>
     46          <td><b>Refresh frequency:</b>
     47          <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" />
     48        <tr>
     49          <td><b>Update policy:</b>
     50          <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" />
     51        <tr>
     52          <td><b>Update through the eepProxy?</b>
     53          <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" />
     54        <tr>
     55          <td><b>eepProxy host:</b>
     56          <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" />
     57        <tr>
     58          <td><b>eepProxy port:</b>
     59          <td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" />
     60        <tr>
     61          <td><b>Update URLs:</b>
     62          <td><textarea name="updateURL" wrap="off"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea>
     63        <tr>
     64          <td><b>Trusted keys:</b>
     65          <td><textarea name="trustedKeys" wrap="off"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea>
     66        <tr>
     67        <tr>
     68          <td colspan="2"><hr />
     69        <tr>
     70        <tr>
     71          <td>
     72          <td><div align="right">
     73              <input type="submit" name="action" value="Save" />
     74              <input type="reset" value="Cancel" />
     75            </div>
     76      </table>
    5677 </form>
     78</div>
    5779</div>
    5880</body>
Note: See TracChangeset for help on using the changeset viewer.