diff --git a/apps/routerconsole/jsp/config.jsp b/apps/routerconsole/jsp/config.jsp index 0fe3c5246e68fa5762637b012aa5532dde79daf6..29c539947243283b55dc0f4144a77e9fe62c3d46 100644 --- a/apps/routerconsole/jsp/config.jsp +++ b/apps/routerconsole/jsp/config.jsp @@ -20,16 +20,19 @@ <jsp:useBean class="net.i2p.router.web.ConfigNetHandler" id="formhandler" scope="request" /> <%@include file="formhandler.jsi" %> -<div class="configure"> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>"> <input type="hidden" name="action" value="blah" > <input type="hidden" name="ratesOnly" value="1" > - <h3><%=intl._t("Bandwidth limiter")%></h3><p> + + <h3 id="bwlimiter" class="tabletitle"><%=intl._t("Bandwidth limiter")%></h3> + <table id="bandwidthconfig" class="configtable"> + <tr><td class="infohelp" colspan="2"> + <!-- TODO: move to css --> <img src="/themes/console/images/itoopie_xsm.png" alt=""> <b><%=intl._t("I2P will work best if you configure your rates to match the speed of your internet connection.")%></b> - </p> - <div class="wideload"><table><tr><td><input style="text-align: right; width: 5em;" name="inboundrate" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="inboundRate" />" > + </td></tr> + <tr><td><input style="text-align: right; width: 5em;" name="inboundrate" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="inboundRate" />" > <%=intl._t("KBps In")%> </td><td>(<jsp:getProperty name="nethelper" property="inboundRateBits" />)</td> <% /******** @@ -55,8 +58,9 @@ </tr><tr> <td><jsp:getProperty name="nethelper" property="sharePercentageBox" /> <%=intl._t("Share")%></td> <td>(<jsp:getProperty name="nethelper" property="shareRateBits" />) -</td></tr></table></div> -<p><% int share = nethelper.getShareBandwidth(); +</td></tr> +<tr><td class="infohelp" colspan="2"> +<% int share = nethelper.getShareBandwidth(); if (share < 12) { out.print("<b>"); out.print(intl._t("NOTE")); @@ -73,11 +77,14 @@ out.print(intl._t("The higher the share bandwidth the more you improve your anonymity and help the network.")); } - %></p> -<p><a href="confignet"><%=intl._t("Advanced network configuration page")%></a></p><hr> -<div class="formaction"> + %></td></tr> + <tr><td colspan="2"> + <a href="confignet"><%=intl._t("Advanced network configuration page")%></a> + </td></tr> + <tr><td class="optionsave" colspan="2"> <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > <input type="submit" class="accept" name="save" value="<%=intl._t("Save changes")%>" > -</div> + </td></tr> + </table> </form> -</div></div></body></html> +</div></body></html> diff --git a/apps/routerconsole/jsp/configadvanced.jsp b/apps/routerconsole/jsp/configadvanced.jsp index 3ba2deed10e4688874f0fce81c1ab80f6026588c..3c496b989f6b443ea27319607e0410f7d9b7fa75 100644 --- a/apps/routerconsole/jsp/configadvanced.jsp +++ b/apps/routerconsole/jsp/configadvanced.jsp @@ -24,9 +24,14 @@ <%@include file="formhandler.jsi" %> <div class="configure"> <div class="wideload"> -<h3><%=intl._t("Floodfill Configuration")%></h3> -<p><%=intl._t("Floodill participation helps the network, but may use more of your computer's resources.")%> -</p><p> + +<h3 id="ffconf" class="tabletitle"><%=intl._t("Floodfill Configuration")%></h3> +<form action="" method="POST"> + <table id="floodfillconfig" class="configtable"> + <tr><td class="infohelp"> +<%=intl._t("Floodill participation helps the network, but may use more of your computer's resources.")%> + </td></tr> + <tr><td> <% if (advancedhelper.isFloodfill()) { %><%=intl._t("This router is currently a floodfill participant.")%><% @@ -34,33 +39,50 @@ %><%=intl._t("This router is not currently a floodfill participant.")%><% } %> -</p> -<form action="" method="POST"> + </td></tr> + <tr><td> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="action" value="ff" > <input type="radio" class="optbox" name="ff" value="auto" <%=advancedhelper.getFFChecked(2) %> > -<%=intl._t("Automatic")%><br> +<%=intl._t("Automatic")%> <input type="radio" class="optbox" name="ff" value="true" <%=advancedhelper.getFFChecked(1) %> > -<%=intl._t("Force On")%><br> +<%=intl._t("Force On")%> <input type="radio" class="optbox" name="ff" value="false" <%=advancedhelper.getFFChecked(0) %> > -<%=intl._t("Disable")%><br> -<div class="formaction"> +<%=intl._t("Disable")%> + </td></tr> + <tr><td class="optionsave" align="right"> <input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Save changes")%>" > -</div></form> -<h3><%=intl._t("Advanced I2P Configuration")%></h3> + </td></tr> + </table> +</form> + +<h3 id="advancedconfig" class="tabletitle"><%=intl._t("Advanced I2P Configuration")%></h3><b> <% if (advancedhelper.isAdvanced()) { %> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="action" value="blah" > <% } // isAdvanced %> - <textarea rows="32" cols="60" name="nofilter_config" wrap="off" spellcheck="false" <% if (!advancedhelper.isAdvanced()) { %>readonly="readonly"<% } %>><jsp:getProperty name="advancedhelper" property="settings" /></textarea><br><hr> +<table class="configtable" id="advconf"> <% if (advancedhelper.isAdvanced()) { %> - <div class="formaction"> - <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > - <input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Save changes")%>" > - <br><b><%=intl._t("NOTE")%>:</b> <%=intl._t("Some changes may require a restart to take effect.")%> - </div></form> + <tr><td class="infohelp"> +<%=intl._t("NOTE")%>:</b> <%=intl._t("Some changes may require a restart to take effect.")%> + </td></tr> <% } else { %> + <tr><td> <%=intl._t("To make changes, edit the file {0}.", "<tt>" + advancedhelper.getConfigFileName() + "</tt>")%> + </td></tr> +<% } // isAdvanced %> + <tr><td class="tabletextarea"> + <textarea id="advancedsettings"rows="32" cols="60" name="nofilter_config" wrap="off" spellcheck="false" <% if (!advancedhelper.isAdvanced()) { %>readonly="readonly"<% } %>><jsp:getProperty name="advancedhelper" property="settings" /></textarea> + </td></tr> +<% if (advancedhelper.isAdvanced()) { %> + <tr><td class="optionsave" align="right"> + <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > + <input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Save changes")%>" > + </td></tr> +<% } // isAdvanced %> +</table> +<% if (advancedhelper.isAdvanced()) { %> +</form> <% } // isAdvanced %> </div></div></div></body></html> diff --git a/apps/routerconsole/jsp/configclients.jsp b/apps/routerconsole/jsp/configclients.jsp index e1e1c2d52b6beb0b428178db35aee4d765222e29..0c3ce0a09cffa8c14dec423ac9830b2dd1937c66 100644 --- a/apps/routerconsole/jsp/configclients.jsp +++ b/apps/routerconsole/jsp/configclients.jsp @@ -27,17 +27,21 @@ input.default { width: 1px; height: 1px; visibility: hidden; } <jsp:useBean class="net.i2p.router.web.ConfigClientsHandler" id="formhandler" scope="request" /> <%@include file="formhandler.jsi" %> <div class="configure"> - <h3><%=intl._t("Client Configuration")%></h3><p> - <%=intl._t("The Java clients listed below are started by the router and run in the same JVM.")%><br> + <h3 id="i2pclientconfig"><%=intl._t("Client Configuration")%></h3> + <p class="infohelp" id="clientconf"> + <%=intl._t("The Java clients listed below are started by the router and run in the same JVM.")%> + <%=intl._t("To change other client options, edit the file")%></i><tt> + <%=net.i2p.router.startup.ClientAppConfig.configFile(net.i2p.I2PAppContext.getGlobalContext()).getAbsolutePath()%>.</tt> + <%=intl._t("All changes require restart to take effect.")%> + </p> + <p class="infowarn" id="clientconf"> + <!-- TODO use css background --> <img src="/themes/console/images/itoopie_xsm.png" alt=""><b><%=intl._t("Be careful changing any settings here. The 'router console' and 'application tunnels' are required for most uses of I2P. Only advanced users should change these.")%></b> </p><div class="wideload"> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <jsp:getProperty name="clientshelper" property="form1" /> -<p><i><%=intl._t("To change other client options, edit the file")%> - <%=net.i2p.router.startup.ClientAppConfig.configFile(net.i2p.I2PAppContext.getGlobalContext()).getAbsolutePath()%>. - <%=intl._t("All changes require restart to take effect.")%></i> - </p><hr><div class="formaction"> +<div class="formaction" id="clientsconfig"> <input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" /> <% if (clientshelper.isClientChangeEnabled() && request.getParameter("edit") == null) { %> <input type="submit" name="edit" class="add" value="<%=intl._t("Add Client")%>" /> @@ -45,17 +49,26 @@ input.default { width: 1px; height: 1px; visibility: hidden; } <input type="submit" class="accept" name="action" value="<%=intl._t("Save Client Configuration")%>" /> </div></form></div> -<h3><a name="i2cp"></a><%=intl._t("Advanced Client Interface Configuration")%></h3> +<h3 id="advancedclientconfig"><a name="i2cp"></a><%=intl._t("Advanced Client Interface Configuration")%></h3> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<p> -<b><%=intl._t("External I2CP (I2P Client Protocol) Interface Configuration")%></b><br> +<table class="configtable" id="externali2cp"> +<tr><td class="infowarn"> +<b><%=intl._t("The default settings will work for most people.")%></b> +<%=intl._t("Any changes made here must also be configured in the external client.")%> +<%=intl._t("Many clients do not support SSL or authorization.")%> +<i><%=intl._t("All changes require restart to take effect.")%></i> +</td></tr> +<tr><th><%=intl._t("External I2CP (I2P Client Protocol) Interface Configuration")%></th></tr> +<tr><td> <input type="radio" class="optbox" name="mode" value="1" <%=clientshelper.i2cpModeChecked(1) %> > -<%=intl._t("Enabled without SSL")%><br> +<%=intl._t("Enabled without SSL")%> <input type="radio" class="optbox" name="mode" value="2" <%=clientshelper.i2cpModeChecked(2) %> > -<%=intl._t("Enabled with SSL required")%><br> +<%=intl._t("Enabled with SSL required")%> <input type="radio" class="optbox" name="mode" value="0" <%=clientshelper.i2cpModeChecked(0) %> > -<%=intl._t("Disabled - Clients outside this Java process may not connect")%><br> +<%=intl._t("Disabled - Clients outside this Java process may not connect")%> +</td</tr> +<tr><td> <%=intl._t("I2CP Interface")%>: <select name="interface"> <% @@ -71,36 +84,39 @@ input.default { width: 1px; height: 1px; visibility: hidden; } out.print("</option>\n"); } %> -</select><br> +</select> <%=intl._t("I2CP Port")%>: -<input name="port" type="text" size="5" maxlength="5" value="<jsp:getProperty name="clientshelper" property="port" />" ><br> -<b><%=intl._t("Authorization")%></b><br> +<input name="port" type="text" size="5" maxlength="5" value="<jsp:getProperty name="clientshelper" property="port" />" > +</td></tr> +<tr><th><%=intl._t("Authorization")%></th></tr> +<tr><td> <input type="checkbox" class="optbox" name="auth" value="true" <jsp:getProperty name="clientshelper" property="auth" /> > -<%=intl._t("Require username and password")%><br> +<%=intl._t("Require username and password")%> +</td></tr> +<tr><td> <%=intl._t("Username")%>: -<input name="user" type="text" value="" /><br> +<input name="user" type="text" value="" /> <%=intl._t("Password")%>: -<input name="nofilter_pw" type="password" value="" /><br> -</p><p><b><%=intl._t("The default settings will work for most people.")%></b> -<%=intl._t("Any changes made here must also be configured in the external client.")%> -<%=intl._t("Many clients do not support SSL or authorization.")%> -<i><%=intl._t("All changes require restart to take effect.")%></i> -</p><hr><div class="formaction"> +<input name="nofilter_pw" type="password" value="" /> +</td></tr> +<tr><td class="optionsave" align="right"> <input type="submit" class="default" name="action" value="<%=intl._t("Save Interface Configuration")%>" /> <input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" /> <input type="submit" class="accept" name="action" value="<%=intl._t("Save Interface Configuration")%>" /> -</div></form> +</td></tr> +</table> +</form> -<h3><a name="webapp"></a><%=intl._t("WebApp Configuration")%></h3><p> - <%=intl._t("The Java web applications listed below are started by the webConsole client and run in the same JVM as the router. They are usually web applications accessible through the router console. They may be complete applications (e.g. i2psnark),front-ends to another client or application which must be separately enabled (e.g. susidns, i2ptunnel), or have no web interface at all (e.g. addressbook).")%> - </p><p> +<h3 id="webappconfig"><a name="webapp"></a><%=intl._t("WebApp Configuration")%></h3> +<p class="infohelp" id="webappconfig"> + <%=intl._t("The Java web applications listed below are started by the webConsole client and run in the same JVM as the router. They are usually web applications accessible through the router console. They may be complete applications (e.g. i2psnark), front-ends to another client or application which must be separately enabled (e.g. susidns, i2ptunnel), or have no web interface at all (e.g. addressbook).")%> <%=intl._t("A web app may also be disabled by removing the .war file from the webapps directory; however the .war file and web app will reappear when you update your router to a newer version, so disabling the web app here is the preferred method.")%> + <i><%=intl._t("All changes require restart to take effect.")%></i> </p><div class="wideload"> <form action="configclients" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <jsp:getProperty name="clientshelper" property="form2" /> - <p><i><%=intl._t("All changes require restart to take effect.")%></i> - </p><hr><div class="formaction"> + <div class="formaction" id="webappconfig"> <input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" /> <input type="submit" name="action" class="accept" value="<%=intl._t("Save WebApp Configuration")%>" /> </div></form></div> @@ -109,13 +125,13 @@ input.default { width: 1px; height: 1px; visibility: hidden; } if (clientshelper.showPlugins()) { if (clientshelper.isPluginUpdateEnabled()) { %> -<h3><a name="pconfig"></a><%=intl._t("Plugin Configuration")%></h3><p> +<h3 id="pluginconfig"><a name="pconfig"></a><%=intl._t("Plugin Configuration")%></h3><p id="pluginconfig"> <%=intl._t("The plugins listed below are started by the webConsole client.")%> </p><div class="wideload"> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <jsp:getProperty name="clientshelper" property="form3" /> -<div class="formaction"> +<div class="formaction" id="pluginconfig"> <input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" /> <input type="submit" name="action" class="accept" value="<%=intl._t("Save Plugin Configuration")%>" /> </div></form></div> @@ -123,38 +139,49 @@ input.default { width: 1px; height: 1px; visibility: hidden; } } // pluginUpdateEnabled if (clientshelper.isPluginInstallEnabled()) { %> -<h3><a name="plugin"></a><%=intl._t("Plugin Installation from URL")%></h3><p> +<h3 id="pluginmanage"><a name="plugin"></a><%=intl._t("Plugin Installation")%></h3> +<table id="plugininstall" class="configtable"> +<tr><td class="infohelp" colspan="2"> <%=intl._t("Look for available plugins on {0}.", "<a href=\"http://i2pwiki.i2p/index.php?title=Plugins\">i2pwiki.i2p</a>")%> - <%=intl._t("To install a plugin, enter the download URL:")%> - </p> -<div class="wideload"> +</td></tr> +<tr><th colspan="2"> + <%=intl._t("Installation from URL")%> +</th></tr> +<tr> <form action="configclients" method="POST"> -<input type="hidden" name="nonce" value="<%=pageNonce%>" > -<p> - <input type="text" size="60" name="pluginURL" > - </p><hr><div class="formaction"> - <input type="submit" name="action" class="default" value="<%=intl._t("Install Plugin")%>" /> +<td> + <input type="hidden" name="nonce" value="<%=pageNonce%>" > + URL: <input type="text" size="60" name="pluginURL" title="<%=intl._t("To install a plugin, enter the download URL.")%>"> +</td> +<td class="optionsave" align="right"> + <input type="submit" name="action" class="default" id="hideme" value="<%=intl._t("Install Plugin")%>" /> <input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" /> <input type="submit" name="action" class="download" value="<%=intl._t("Install Plugin")%>" /> -</div></form></div> - - -<div class="wideload"> -<h3><a name="plugin"></a><%=intl._t("Plugin Installation from File")%></h3> +</td> +</form> +</tr> +<tr><th colspan="2"> +<a name="plugin"></a><%=intl._t("Installation from File")%> +</th></tr> +<tr> <form action="configclients" method="POST" enctype="multipart/form-data" accept-charset="UTF-8"> +<td> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<p><%=intl._t("Install plugin from file.")%> -<br><%=intl._t("Select xpi2p or su3 file")%> : +<%=intl._t("Select xpi2p or su3 file")%>: <input type="file" name="pluginFile" > -</p><hr><div class="formaction"> +</td> +<td class="optionsave" align="right"> <input type="submit" name="action" class="download" value="<%=intl._t("Install Plugin from File")%>" /> -</div></form></div> +</td> +</form> +</tr> +</table> <% } // pluginInstallEnabled if (clientshelper.isPluginUpdateEnabled()) { %> -<h3><a name="plugin"></a><%=intl._t("Update All Plugins")%></h3> -<div class="formaction"> +<h4 id="updateplugins" class="embeddedtitle"><a name="plugin"></a><%=intl._t("Update All Plugins")%></h4> +<div class="formaction" id="updateplugins"> <form action="configclients" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="submit" name="action" class="reload" value="<%=intl._t("Update All Installed Plugins")%>" /> diff --git a/apps/routerconsole/jsp/configfamily.jsp b/apps/routerconsole/jsp/configfamily.jsp index 119239098d758daf4e0b9bfda3914ef81e223bea..fcdadac2130e7026d8a91192ab50a160f94cac01 100644 --- a/apps/routerconsole/jsp/configfamily.jsp +++ b/apps/routerconsole/jsp/configfamily.jsp @@ -20,7 +20,7 @@ <jsp:useBean class="net.i2p.router.web.ConfigFamilyHandler" id="formhandler" scope="request" /> <%@include file="formhandler.jsi" %> -<p><%=intl._t("Routers in the same family share a family key.")%> +<p class="infohelp"><%=intl._t("Routers in the same family share a family key.")%> <%=intl._t("To join an existing family, import the private key you exported from a router in the family.")%> <%=intl._t("To start a new family, enter a family name.")%> </p> @@ -30,27 +30,35 @@ if (family.length() <= 0) { // no family yet %> -<div class="configure"> +<table class="configtable" id="joinfamily"> <form action="" method="POST" enctype="multipart/form-data" accept-charset="UTF-8"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<h3><%=intl._t("Join Existing Router Family")%></h3> -<p><%=intl._t("Import the secret family key that you exported from an existing router in the family.")%> -<p><%=intl._t("Select secret key file")%> : + <tr><th colspan="2"><%=intl._t("Join Existing Router Family")%></th></tr> + <tr><td colspan="2"><%=intl._t("Import the secret family key that you exported from an existing router in the family.")%></td></tr> + <tr> + <td><%=intl._t("Select secret key file")%>: <input name="file" type="file" value="" /> -</p> -<div class="formaction"> + </td> + <td class="optionsave"> <input type="submit" name="action" class="download" value="<%=intl._t("Join Existing Router Family")%>" /> -</div></form></div> + </td> + </tr> +</form></table> -<div class="configure"><form action="" method="POST"> +<table class="configtable" id="newfamily"> +<form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<h3><%=intl._t("Create New Router Family")%></h3> -<p><%=intl._t("Family Name")%> : + <tr><th colspan="2"><%=intl._t("Create New Router Family")%></th></tr> + <tr> + <td><%=intl._t("Family Name")%>: <input name="family" type="text" size="30" value="" /> -</p> -<div class="formaction"> + </td> + <td class="optionsave"> <input type="submit" name="action" class="accept" value="<%=intl._t("Create New Router Family")%>" /> -</div></form></div> + </td> + </tr> +</form> +</table> <% } else { // family is configured @@ -58,30 +66,36 @@ if (keypw.length() > 0) { // family is active %> -<div class="configure"> +<table class="configtable" id="exportfamily"> <form action="/exportfamily" method="GET"> -<h3><%=intl._t("Export Family Key")%></h3> -<p><%=intl._t("Export the secret family key to be imported into other routers you control.")%> -</p> -<div class="formaction"> + <tr><th><%=intl._t("Export Family Key")%></th></tr> + <tr><td><%=intl._t("Export the secret family key to be imported into other routers you control.")%></td></tr> + <tr> + <td class="optionsave"> <input type="submit" name="action" class="go" value="<%=intl._t("Export Family Key")%>" /> -</div></form></div> + </td> + </tr> +</form></table> <% } else { // family is not active %> -<p><b><%=intl._t("Restart required to activate family {0}.", '"' + family + '"')%> +<p class="infohelp"><b><%=intl._t("Restart required to activate family {0}.", '"' + family + '"')%> <%=intl._t("After restarting, you may export the family key.")%></b></p> <% } %> -<div class="configure"><form action="" method="POST"> +<table class="configtable" id="leavefamily"> +<form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<h3><%=intl._t("Leave Router Family")%></h3> -<p><%=intl._t("No longer be a member of the family {0}.", '"' + family + '"')%> -<div class="formaction"> + <tr><th colspan="2"><%=intl._t("Leave Router Family")%></th></tr> + <tr><td><%=intl._t("No longer be a member of the family {0}.", '"' + family + '"')%></td> + <td class="optionsave"> <input type="submit" name="action" class="delete" value="<%=intl._t("Leave Router Family")%>" /> -</div></form></div> + </td> + </tr> +</form> +</table> <% } %> diff --git a/apps/routerconsole/jsp/confighome.jsp b/apps/routerconsole/jsp/confighome.jsp index c71b46edff791bb42071a6d16bb9a9d0937e57be..87929bae083a5d63976221023e4ea0954eddf1a4 100644 --- a/apps/routerconsole/jsp/confighome.jsp +++ b/apps/routerconsole/jsp/confighome.jsp @@ -30,9 +30,17 @@ input.default { <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="group" value="0"> +<table id="oldhome" class="configtable"> + <tr> + <td> <input type="checkbox" name="oldHome" <jsp:getProperty name="homehelper" property="configHome" /> > <%=intl._t("Use old home page")%> + </td> + <td class="optionsave"> <input type="submit" name="action" class="accept" value="<%=intl._t("Save")%>" > + </td> + </tr> +</table> </form> <% diff --git a/apps/routerconsole/jsp/configkeyring.jsp b/apps/routerconsole/jsp/configkeyring.jsp index 3653a94790ab5721dd6382b4399ce467aca825c9..afe0e3c5129afa9bf35f58bd913b2119d87d6700 100644 --- a/apps/routerconsole/jsp/configkeyring.jsp +++ b/apps/routerconsole/jsp/configkeyring.jsp @@ -18,21 +18,20 @@ <%@include file="formhandler.jsi" %> <jsp:useBean class="net.i2p.router.web.ConfigKeyringHelper" id="keyringhelper" scope="request" /> <jsp:setProperty name="keyringhelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" /> -<div class="configure"><h2><%=intl._t("Keyring")%></h2><p> +<p id="keyringhelp" class="infohelp"> <%=intl._t("The router keyring is used to decrypt encrypted leaseSets.")%> <%=intl._t("The keyring may contain keys for local or remote encrypted destinations.")%></p> - <div class="wideload"> <jsp:getProperty name="keyringhelper" property="summary" /> -</div> - <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > - <h3><%=intl._t("Manual Keyring Addition")%></h3><p> + <h3 class="tabletitle"><%=intl._t("Manual Keyring Addition")%></h3> + <table id="addkeyring"> + <tr> + <td class="infohelp" colspan="2"> <%=intl._t("Enter keys for encrypted remote destinations here.")%> <%=intl._t("Keys for local destinations must be entered on the")%> <a href="i2ptunnel/"><%=intl._t("I2PTunnel page")%></a>. -</p> - <div class="wideload"> - <table><tr> + </td> + </tr><tr> <td class="mediumtags" align="right"><%=intl._t("Dest. name, hash, or full key")%>:</td> <td><textarea name="peer" cols="44" rows="1" style="height: 3em;" wrap="off" spellcheck="false"></textarea></td> </tr><tr> @@ -43,4 +42,4 @@ <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > <input type="submit" name="action" class="delete" value="<%=intl._t("Delete key")%>" > <input type="submit" name="action" class="add" value="<%=intl._t("Add key")%>" > -</td></tr></table></div></form></div></div></body></html> +</td></tr></table></form></div></body></html> diff --git a/apps/routerconsole/jsp/configlogging.jsp b/apps/routerconsole/jsp/configlogging.jsp index 84f10ac806aa14f70a2cd20912c42eeb69759bfc..9da8ad525994f64d911650ba6c37d3267d92b908 100644 --- a/apps/routerconsole/jsp/configlogging.jsp +++ b/apps/routerconsole/jsp/configlogging.jsp @@ -19,35 +19,40 @@ <jsp:useBean class="net.i2p.router.web.ConfigLoggingHandler" id="formhandler" scope="request" /> <%@include file="formhandler.jsi" %> -<div class="configure"> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="action" value="blah" > - <h3><%=intl._t("Configure I2P Logging Options")%></h3> - <div class="wideload"> - <table border="0" cellspacing="5"> + <h3 class="tabletitle"><%=intl._t("Configure I2P Logging Options")%></h3> + <table id="loggingoptions" border="0" cellspacing="5"> <tr><td class="mediumtags" align="right"><b><%=intl._t("Log file")%>:</b></td> <td><input type="text" name="logfilename" size="40" disabled="disabled" title="<%=intl._t("Edit {0} to change", "logger.config")%>" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" > - <br> <i><%=intl._t("(the symbol '@' will be replaced during log rotation)")%></i></td> + </td> + <td><i><%=intl._t("(the symbol '@' will be replaced during log rotation)")%></i></td> + <td></td> </tr><tr><td class="mediumtags" align="right"><b><%=intl._t("Log record format")%>:</b></td> <td><input type="text" name="logformat" size="20" value="<jsp:getProperty name="logginghelper" property="recordPattern" />" > - <br> <i><%=intl._t("(use 'd' = date, 'c' = class, 't' = thread, 'p' = priority, 'm' = message)")%> - </i></td> + </td> + <td><i><%=intl._t("(use 'd' = date, 'c' = class, 't' = thread, 'p' = priority, 'm' = message)")%></i></td> + <td></td> </tr><tr><td class="mediumtags" align="right"><b><%=intl._t("Log date format")%>:</b></td> <td><input type="text" name="logdateformat" size="20" value="<jsp:getProperty name="logginghelper" property="datePattern" />" > - <br> <i><%=intl._t("('MM' = month, 'dd' = day, 'HH' = hour, 'mm' = minute, 'ss' = second, 'SSS' = millisecond)")%> - </i></td> + </td> + <td><i><%=intl._t("('MM' = month, 'dd' = day, 'HH' = hour, 'mm' = minute, 'ss' = second, 'SSS' = millisecond)")%></i></td> + <td></td> </tr><tr><td class="mediumtags" align="right"><b><%=intl._t("Max log file size")%>:</b></td> - <td><input type="text" name="logfilesize" size="10" value="<jsp:getProperty name="logginghelper" property="maxFileSize" />" ><br></td> + <td><input type="text" name="logfilesize" size="10" value="<jsp:getProperty name="logginghelper" property="maxFileSize" />" ></td> + <td></td> + <td></td> </tr><tr><td class="mediumtags" align="right"><b><%=intl._t("Default log level")%>:</b></td> - <td><jsp:getProperty name="logginghelper" property="defaultLogLevelBox" /><br><i><%=intl._t("(DEBUG and INFO are not recommended defaults, as they will drastically slow down your router)")%> - </i></td> + <td><jsp:getProperty name="logginghelper" property="defaultLogLevelBox" /></td> + <td><i><%=intl._t("(DEBUG and INFO are not recommended defaults, as they will drastically slow down your router)")%></i></td> + <td></td> </tr><tr><td class="mediumtags" align="right"><b><%=intl._t("Log level overrides")%>:</b></td> - <td><jsp:getProperty name="logginghelper" property="logLevelTable" /></td> + <td colspan="3"><jsp:getProperty name="logginghelper" property="logLevelTable" /></td> </tr><tr><td class="mediumtags" align="right"><b><%=intl._t("New override")%>:</b></td> - <td><jsp:getProperty name="logginghelper" property="newClassBox" /></td> - </tr><tr><td colspan="2"><hr></td> - </tr><tr class="tablefooter"><td colspan="2"> <div class="formaction"> + <td colspan="3"><jsp:getProperty name="logginghelper" property="newClassBox" /></td> + </tr> + <tr><td class="optionsave" colspan="4"> <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > <input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Save changes")%>" > -</div></td></tr></table></div></form></div></div></body></html> +</td></tr></table></form></div></body></html> diff --git a/apps/routerconsole/jsp/confignet.jsp b/apps/routerconsole/jsp/confignet.jsp index 25ccc35b5a67748b1ace15c7d7ae604e676cfc0b..6638ff1f53ea168afd828eeba290c02ba96cd522 100644 --- a/apps/routerconsole/jsp/confignet.jsp +++ b/apps/routerconsole/jsp/confignet.jsp @@ -19,18 +19,39 @@ <jsp:useBean class="net.i2p.router.web.ConfigNetHandler" id="formhandler" scope="request" /> <%@include file="formhandler.jsi" %> -<div class="configure"> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="action" value="blah" > - <h3><%=intl._t("IP and Transport Configuration")%></h3><p> + <h3 id="iptransport" class="tabletitle"><%=intl._t("IP and Transport Configuration")%></h3> + <table id="netconfig" class="configtable"> + <tr> + <td class="infohelp"> + <!-- TODO replace static img with css background --> <img src="/themes/console/images/itoopie_xsm.png" alt=""> <b><%=intl._t("The default settings will work for most people.")%> <a href="#chelp"><%=intl._t("There is help below.")%></a></b> - </p><p><b><%=intl._t("UPnP Configuration")%>:</b><br> + <%=intl._t("Changing these settings will restart your router.")%> + </td> + </tr> + <tr> + <td class="infowarn"> + <b><%=intl._t("Do not reveal your port numbers to anyone as they can be used to discover your ip address.")%></b> + </td> + </tr> + <tr> + <th id="upnpconfig"><%=intl._t("UPnP Configuration")%></th> + </tr> + <tr> + <td> <input type="checkbox" class="optbox" name="upnp" value="true" <jsp:getProperty name="nethelper" property="upnpChecked" /> > <%=intl._t("Enable UPnP to open firewall ports")%> - <a href="peers#upnp"><%=intl._t("UPnP status")%></a> - </p><p><b><%=intl._t("IP Configuration")%>:</b><br> + </td> + </tr> + <tr> + <th id="ipconfig"><%=intl._t("IP Configuration")%></th> + </tr> + <tr> + <td> <%=intl._t("Externally reachable hostname or IP address")%>:<br> <input type="radio" class="optbox" name="udpAutoIP" value="local,upnp,ssu" <%=nethelper.getUdpAutoIPChecked(3) %> > <%=intl._t("Use all auto-detect methods")%><br> @@ -43,19 +64,34 @@ <input type="radio" class="optbox" name="udpAutoIP" value="hidden" <%=nethelper.getUdpAutoIPChecked(2) %> > <%=intl._t("Hidden mode - do not publish IP")%> <i><%=intl._t("(prevents participating traffic)")%></i><br> <input type="radio" class="optbox" name="udpAutoIP" value="fixed" <%=nethelper.getUdpAutoIPChecked(1) %> > - <%=intl._t("Specify hostname or IP")%>:<br> + <%=intl._t("Specify hostname or IP")%>: <%=nethelper.getAddressSelector() %> - </p><p> - <%=intl._t("Action when IP changes")%>:<br> + </td> + </tr> + <tr> + <th id="ipchange"><%=intl._t("Action when IP changes")%></th> + </tr> + <tr> + <td> <input type="checkbox" class="optbox" name="laptop" value="true" <jsp:getProperty name="nethelper" property="laptopChecked" /> > <%=intl._t("Laptop mode - Change router identity and UDP port when IP changes for enhanced anonymity")%> (<i><%=intl._t("Experimental")%></i>) - </p><p> - <%=intl._t("IPv4 Configuration")%>:<br> + </td> + </tr> + <tr> + <th id="ipv4config"><%=intl._t("IPv4 Configuration")%></th> + </tr> + <tr> + <td> <input type="checkbox" class="optbox" name="IPv4Firewalled" value="true" <jsp:getProperty name="nethelper" property="IPv4FirewalledChecked" /> > <%=intl._t("Disable inbound (Firewalled by Carrier-grade NAT or DS-Lite)")%> - </p><p> - <%=intl._t("IPv6 Configuration")%>:<br> + </td> + </tr> + <tr> + <th id="ipv6config"><%=intl._t("IPv6 Configuration")%></th> + </tr> + <tr> + <td> <input type="radio" class="optbox" name="ipv6" value="false" <%=nethelper.getIPv6Checked("false") %> > <%=intl._t("Disable IPv6")%><br> <input type="radio" class="optbox" name="ipv6" value="enable" <%=nethelper.getIPv6Checked("enable") %> > @@ -66,12 +102,20 @@ <%=intl._t("Prefer IPv6 over IPv4")%><br> <input type="radio" class="optbox" name="ipv6" value="only" <%=nethelper.getIPv6Checked("only") %> > <%=intl._t("Use IPv6 only (disable IPv4)")%> - (<i><%=intl._t("Experimental")%></i>)<br> - </p><p><b><%=intl._t("UDP Configuration:")%></b><br> + (<i><%=intl._t("Experimental")%></i>) + </td> + </tr> + <tr> + <th id="udpconfig"><%=intl._t("UDP Configuration")%></th> + </tr> + <tr> + <td> <%=intl._t("UDP port:")%> <input name ="udpPort" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="configuredUdpPort" />" ><br> <input type="checkbox" class="optbox" name="disableUDP" value="disabled" <%=nethelper.getUdpDisabledChecked() %> > - <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that blocks outbound UDP)")%></i><br> + <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that blocks outbound UDP)")%></i> + </td> + </tr> <% /******** <!-- let's keep this simple... <input type="checkbox" class="optbox" name="requireIntroductions" value="true" <jsp:getProperty name="nethelper" property="requireIntroductionsChecked" /> /> @@ -81,8 +125,11 @@ Current External UDP address: <i><jsp:getProperty name="nethelper" property="udpAddress" /></i><br> --> *********/ %> - </p><p> - <b><%=intl._t("TCP Configuration")%>:</b><br> + <tr> + <th id="tcpconfig"><%=intl._t("TCP Configuration")%></th> + </tr> + <tr> + <td> <%=intl._t("Externally reachable hostname or IP address")%>:<br> <input type="radio" class="optbox" name="ntcpAutoIP" value="true" <%=nethelper.getTcpAutoIPChecked(2) %> > <%=intl._t("Use auto-detected IP address")%> @@ -96,20 +143,33 @@ <input type="radio" class="optbox" name="ntcpAutoIP" value="false" <%=nethelper.getTcpAutoIPChecked(0) %> > <%=intl._t("Disable inbound (Firewalled)")%><br> <input type="radio" class="optbox" name="ntcpAutoIP" value="disabled" <%=nethelper.getTcpAutoIPChecked(4) %> > - <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that throttles or blocks outbound TCP)")%></i><br> - </p><p> - <%=intl._t("Externally reachable TCP port")%>:<br> + <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that throttles or blocks outbound TCP)")%></i> + </td> + </tr> + <tr> + <th id="externaltcp"><%=intl._t("Externally reachable TCP port")%></th> + </tr> + <tr> + <td> <input type="radio" class="optbox" name="ntcpAutoPort" value="2" <%=nethelper.getTcpAutoPortChecked(2) %> > <%=intl._t("Use the same port configured for UDP")%> <i>(<%=intl._t("currently")%> <jsp:getProperty name="nethelper" property="udpPort" />)</i><br> <input type="radio" class="optbox" name="ntcpAutoPort" value="1" <%=nethelper.getTcpAutoPortChecked(1) %> > <%=intl._t("Specify Port")%>: - <input name ="ntcpport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="ntcpport" />" ><br> - </p><p><b><%=intl._t("Notes")%>: <%=intl._t("a) Do not reveal your port numbers to anyone! b) Changing these settings will restart your router.")%></b></p> -<hr><div class="formaction"> + <input name ="ntcpport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="ntcpport" />" > + </td> + </tr> + <tr> + <td class="optionsave"> <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > <input type="submit" class="accept" name="save" value="<%=intl._t("Save changes")%>" > -</div><h3><a name="chelp"><%=intl._t("Configuration Help")%>:</a></h3><div align="justify"><p> + </td> + </tr> +</table> + +<h3><a name="chelp"><%=intl._t("Configuration Help")%></a></h3> +<div id="confighelp"> + <p> <%=intl._t("While I2P will work fine behind most firewalls, your speeds and network integration will generally improve if the I2P port is forwarded for both UDP and TCP.")%> </p><p> <%=intl._t("If you can, please poke a hole in your firewall to allow unsolicited UDP and TCP packets to reach you.")%> @@ -143,7 +203,10 @@ <%=intl._t("If you specify the wrong IP address or hostname, or do not properly configure your NAT or firewall, your network performance will degrade substantially.")%> <%=intl._t("When in doubt, leave the settings at the defaults.")%> </p> -<h3><a name="help"><%=intl._t("Reachability Help")%>:</a></h3><p> +</div> +<h3><a name="help"><%=intl._t("Reachability Help")%></a></h3> +<div id="reach_help"> +<p> <%=intl._t("While I2P will work fine behind most firewalls, your speeds and network integration will generally improve if the I2P port is forwarded for both UDP and TCP.")%> <%=intl._t("If you think you have opened up your firewall and I2P still thinks you are firewalled, remember that you may have multiple firewalls, for example both software packages and external hardware routers.")%> <%=intl._t("If there is an error, the <a href=\"logs.jsp\">logs</a> may also help diagnose the problem.")%> @@ -199,7 +262,8 @@ <li class="tidylist"><b><%=intl._t("ERR - Client Manager I2CP Error - check logs")%></b> - <%=intl._t("This is usually due to a port 7654 conflict. Check the logs to verify.")%> <%=intl._t("Do you have another I2P instance running? Stop the conflicting program and restart I2P.")%> - </ul><hr> + </ul> +</div> <% /******** <!-- <b>Dynamic Router Keys: </b> @@ -221,4 +285,4 @@ <br> --> *********/ %> -</div></form></div></div></body></html> +</form></div></body></html> diff --git a/apps/routerconsole/jsp/configpeer.jsp b/apps/routerconsole/jsp/configpeer.jsp index 5a9cfcae75c15735825f5db7a999bbd518dee8fc..cd2460703a0bfe8a88eebe57f2f372e4d769588a 100644 --- a/apps/routerconsole/jsp/configpeer.jsp +++ b/apps/routerconsole/jsp/configpeer.jsp @@ -23,44 +23,55 @@ if (request.getParameter("peer") != null) peer = net.i2p.data.DataHelper.stripHTML(request.getParameter("peer")); // XSS %> - <div class="configure"> <form action="configpeer" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <a name="sh"> </a> <a name="unsh"> </a> <a name="bonus"> </a> - <h2><%=intl._t("Manual Peer Controls")%></h2> - <div class="mediumtags"><p><%=intl._t("Router Hash")%>: -<input type="text" size="55" name="peer" value="<%=peer%>" /></p></div> - <h3><%=intl._t("Manually Ban / Unban a Peer")%></h3> - <p><%=intl._t("Banning will prevent the participation of this peer in tunnels you create.")%></p> - <div class="formaction"> + <h3 class="tabletitle"><%=intl._t("Manual Peer Controls")%></h3> + <table class="configtable"> + <tr><td colspan="2"><%=intl._t("Router Hash")%>:<input type="text" size="55" name="peer" value="<%=peer%>" /></td></tr> + <tr><th colspan="2"><%=intl._t("Manually Ban / Unban a Peer")%></th></tr> + <tr><td class="infohelp" colspan="2"><%=intl._t("Banning will prevent the participation of this peer in tunnels you create.")%></td></tr> + <tr> + <td class="optionsave" colspan="2"> <input type="submit" name="action" class="delete" value="<%=intl._t("Ban peer until restart")%>" /> <input type="submit" name="action" class="accept" value="<%=intl._t("Unban peer")%>" /> <% if (! "".equals(peer)) { %> <!-- <font color="blue"><---- click to verify action</font> --> <% } %> - </div> + </td> + </tr> - <h3><%=intl._t("Adjust Profile Bonuses")%></h3> - <p><%=intl._t("Bonuses may be positive or negative, and affect the peer's inclusion in Fast and High Capacity tiers. Fast peers are used for client tunnels, and High Capacity peers are used for some exploratory tunnels. Current bonuses are displayed on the")%> <a href="profiles"><%=intl._t("profiles page")%></a>.</p> + <tr><th colspan="2"><%=intl._t("Adjust Profile Bonuses")%></th></tr> + <tr> + <td class="infohelp" colspan="2"> + <%=intl._t("Bonuses may be positive or negative, and affect the peer's inclusion in Fast and High Capacity tiers. Fast peers are used for client tunnels, and High Capacity peers are used for some exploratory tunnels. Current bonuses are displayed on the")%> <a href="profiles"><%=intl._t("profiles page")%></a>. + </td> + </tr> + <tr> <% long speed = 0; long capacity = 0; if (! "".equals(peer)) { // get existing bonus values? } %> - <div class="mediumtags"><p><%=intl._t("Speed")%>: + <td><%=intl._t("Speed")%>: <input type="text" size="8" name="speed" value="<%=speed%>" /> <%=intl._t("Capacity")%>: <input type="text" size="8" name="capacity" value="<%=capacity%>" /> - <input type="submit" name="action" class="add" value="<%=intl._t("Adjust peer bonuses")%>" /></p></div> + </td> + <td class="optionsave"> + <input type="submit" name="action" class="add" value="<%=intl._t("Adjust peer bonuses")%>" /> + </td> + </tr> + </table> </form> - <a name="banlist"> </a><h2><%=intl._t("Banned Peers")%></h2> + <a name="banlist"> </a><h3 id="bannedpeers"><%=intl._t("Banned Peers")%></h3> <jsp:useBean class="net.i2p.router.web.ProfilesHelper" id="profilesHelper" scope="request" /> <jsp:setProperty name="profilesHelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" /> <% profilesHelper.storeWriter(out); %> <jsp:getProperty name="profilesHelper" property="banlistSummary" /> - <div class="wideload"><h2><%=intl._t("Banned IPs")%></h2> + <h3 class="tabletitle"><%=intl._t("Banned IPs")%></h3> <jsp:getProperty name="peerhelper" property="blocklistSummary" /> -</div><hr></div></div></body></html> + </div></body></html> diff --git a/apps/routerconsole/jsp/configreseed.jsp b/apps/routerconsole/jsp/configreseed.jsp index 0edabc6b2c99ca3c49c0295cb7ff130393fa3661..da82647b96372d78fd14e0b40330e67c61cee582 100644 --- a/apps/routerconsole/jsp/configreseed.jsp +++ b/apps/routerconsole/jsp/configreseed.jsp @@ -20,55 +20,77 @@ <jsp:useBean class="net.i2p.router.web.ConfigReseedHandler" id="formhandler" scope="request" /> <%@include file="formhandler.jsi" %> -<p><%=intl._t("Reseeding is the bootstrapping process used to find other routers when you first install I2P, or when your router has too few router references remaining.")%> +<p class="infohelp"> +<%=intl._t("Reseeding is the bootstrapping process used to find other routers when you first install I2P, or when your router has too few router references remaining.")%> <%=intl._t("If reseeding has failed, you should first check your network connection.")%> <%=intl._t("See {0} for instructions on reseeding manually.", "<a href=\"https://geti2p.net/faq#manual_reseed\">" + intl._t("the FAQ") + "</a>")%> </p> - -<div class="configure"><form action="" method="POST"> -<input type="hidden" name="nonce" value="<%=pageNonce%>" > -<h3><%=intl._t("Manual Reseed from URL")%></h3> -<p><%=intl._t("Enter zip or su3 URL")%> : -<input name="url" type="text" size="60" value="" /> -<br><%=intl._t("The su3 format is preferred, as it will be verified as signed by a trusted source.")%> +<h3 class="tabletitle"><%=intl._t("Manual Reseed")%></h3> +<table id="manualreseed" class="configtable"> + <tr> + <td class="infohelp" colspan="2"> +<%=intl._t("The su3 format is preferred, as it will be verified as signed by a trusted source.")%> <%=intl._t("The zip format is unsigned; use a zip file only from a source that you trust.")%> -</p> -<div class="formaction"> + </td> + <tr> + <th colspan="2"><%=intl._t("Reseed from URL")%></th> + </tr> + <tr> +<form action="" method="POST"> +<input type="hidden" name="nonce" value="<%=pageNonce%>" > + <td> +<%=intl._t("Enter zip or su3 URL")%>:<input name="url" type="text" size="60" value="" /> + </td> + <td class="optionsave"> <input type="submit" name="action" class="download" value="<%=intl._t("Reseed from URL")%>" /> -</div></form></div> - -<div class="configure"> + </td> +</form> + </tr> + <tr> + <th colspan="2"><%=intl._t("Reseed from File")%></th> + </tr> + <tr> <form action="" method="POST" enctype="multipart/form-data" accept-charset="UTF-8"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<h3><%=intl._t("Manual Reseed from File")%></h3> -<p><%=intl._t("Select zip or su3 file")%> : + <td> +<%=intl._t("Select zip or su3 file")%>: <input name="file" type="file" value="" /> -<br><%=intl._t("The su3 format is preferred, as it will be verified as signed by a trusted source.")%> -<%=intl._t("The zip format is unsigned; use a zip file only from a source that you trust.")%> -</p> -<div class="formaction"> + </td> + <td class="optionsave"> <input type="submit" name="action" class="download" value="<%=intl._t("Reseed from file")%>" /> -</div></form></div> - -<div class="configure"> -<form action="/createreseed" method="GET"> -<h3><%=intl._t("Create Reseed File")%></h3> -<p><%=intl._t("Create a new reseed zip file you may share for others to reseed manually.")%> + </td> +</form> + </tr> + <tr> + <th colspan="2"> +<%=intl._t("Create Reseed File")%> + </th> + </tr> + <tr> + <td class="infohelp" colspan="2"> +<%=intl._t("Create a new reseed zip file you may share for others to reseed manually.")%> <%=intl._t("This file will never contain your own router's identity or IP.")%> -</p> -<div class="formaction"> + </td> + </tr> + <tr> + <td class="optionsave" colspan="2"> +<form action="/createreseed" method="GET"> <input type="submit" name="action" class="go" value="<%=intl._t("Create reseed file")%>" /> -</div></form></div> +</form> + </td> + </tr> +</table> -<div class="configure"> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > -<h3><%=intl._t("Reseeding Configuration")%></h3> -<p><b><%=intl._t("The default settings will work for most people.")%></b> +<h3 class="tabletitle"><%=intl._t("Reseeding Configuration")%></h3> +<table id="reseedconfig" class="configtable" border="0" cellspacing="5"> + <tr> + <td class="infohelp" colspan="2"> +<b><%=intl._t("The default settings will work for most people.")%></b> <%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%> -</p> -<div class="wideload"> -<table border="0" cellspacing="5"> + </td> + </tr> <tr><td class="mediumtags" align="right"><b><%=intl._t("Reseed URL Selection")%>:</b></td> <td><input type="radio" class="optbox" name="mode" value="0" <%=reseedHelper.modeChecked(0) %> > <b><%=intl._t("Try SSL first then non-SSL")%></b><br> @@ -111,9 +133,12 @@ <td><input name="nofilter_spassword" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_spassword" />" ></td></tr> --> -</table></div> -<div class="formaction"> + <tr> + <td class="optionsave" colspan="2"> <input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" /> <input type="submit" name="action" class="download" value="<%=intl._t("Save changes and reseed now")%>" /> <input type="submit" name="action" class="accept" value="<%=intl._t("Save changes")%>" /> -</div></form></div></div></body></html> + </td> + </tr> +</table> +</form></div></body></html> diff --git a/apps/routerconsole/jsp/configsidebar.jsp b/apps/routerconsole/jsp/configsidebar.jsp index 508e88165defd3f3f328f65628854e5b04079f82..97b19c84f5c5deb6bdba6c512199b02e1b39e3a6 100644 --- a/apps/routerconsole/jsp/configsidebar.jsp +++ b/apps/routerconsole/jsp/configsidebar.jsp @@ -29,14 +29,22 @@ input.default { <jsp:useBean class="net.i2p.router.web.SummaryHelper" id="summaryhelper" scope="request" /> <jsp:setProperty name="summaryhelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" /> -<h3><%=intl._t("Refresh Interval")%></h3> +<h3 class="tabletitle"><%=intl._t("Refresh Interval")%></h3> +<table class="configtable"> + <tr> <form action="" method="POST"> + <td> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="group" value="0"> <input type="text" name="refreshInterval" value="<jsp:getProperty name="intl" property="refresh" />" > <%=intl._t("seconds")%> + </td> + <td class="optionsave"> <input type="submit" name="action" class="accept" value="<%=intl._t("Save")%>" > + </td> </form> + </tr> +</table> <h3 class="tabletitle"><%=intl._t("Customize Summary Bar")%></h3> <form action="" method="POST">