From f95100a1ffb161ce208b102b86183083ff398a91 Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Mon, 23 May 2016 11:02:10 +0000 Subject: [PATCH] Update links, add tooltips etc. --- .../net/i2p/router/web/BanlistRenderer.java | 4 ++-- .../src/net/i2p/router/web/GraphHelper.java | 4 +++- .../src/net/i2p/router/web/NetDbRenderer.java | 14 ++++++++++---- .../src/net/i2p/router/web/SummaryHelper.java | 2 +- .../src/net/i2p/router/web/SybilRenderer.java | 2 +- .../net/i2p/router/web/TunnelRenderer.java | 4 ++-- apps/routerconsole/jsp/config.jsp | 5 +---- apps/routerconsole/jsp/configadvanced.jsp | 2 +- apps/routerconsole/jsp/configlogging.jsp | 2 +- apps/routerconsole/jsp/confignet.jsp | 19 +++++++++---------- apps/routerconsole/jsp/configservice.jsp | 4 +--- apps/routerconsole/jsp/configstats.jsp | 2 +- apps/routerconsole/jsp/help.jsp | 2 +- apps/routerconsole/jsp/home.jsp | 2 +- apps/routerconsole/jsp/logs.jsp | 2 +- apps/susidns/src/jsp/addressbook.jsp | 4 ++-- 16 files changed, 38 insertions(+), 36 deletions(-) diff --git a/apps/routerconsole/java/src/net/i2p/router/web/BanlistRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/BanlistRenderer.java index 0cf6c87447..9d37b6dbcf 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/BanlistRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/BanlistRenderer.java @@ -78,8 +78,8 @@ class BanlistRenderer { buf.append(_t(entry.cause)); } if (!key.equals(Hash.FAKE_HASH)) { - buf.append(" (<a href=\"configpeer?peer=").append(key.toBase64()) - .append("#unsh\">").append(_t("unban now")).append("</a>)"); + buf.append(" <a href=\"configpeer?peer=").append(key.toBase64()) + .append("#unsh\">[").append(_t("unban now")).append("]</a>"); } buf.append("</li>\n"); } diff --git a/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java index 8deb80b1d2..9c44c06eb1 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java @@ -322,6 +322,8 @@ public class GraphHelper extends FormHandler { _out.write("</a>"); _out.write("</p><p><i>" + _t("All times are UTC.") + "</i></p>\n"); + + _out.write("<p><a href=\"graphs\">" + _t("Return to main graphs page") + "</a></p>\n"); } catch (IOException ioe) { ioe.printStackTrace(); } @@ -353,7 +355,7 @@ public class GraphHelper extends FormHandler { // So just use the "shared/console nonce". String nonce = CSSHelper.getNonce(); try { - _out.write("<br><h3 id=\"graphdisplay\">" + _t("Configure Graph Display") + " [<a href=\"configstats\">" + _t("Select Stats") + "</a>]</h3>"); + _out.write("<br><h3 id=\"graphdisplay\">" + _t("Configure Graph Display") + " <a href=\"configstats\">[" + _t("Select Stats") + "]</a></h3>"); _out.write("<form action=\"graphs\" method=\"POST\">\n" + "<input type=\"hidden\" name=\"action\" value=\"save\">\n" + "<input type=\"hidden\" name=\"nonce\" value=\"" + nonce + "\" >\n"); diff --git a/apps/routerconsole/java/src/net/i2p/router/web/NetDbRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/NetDbRenderer.java index 081db5490a..e4f4a33b78 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/NetDbRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/NetDbRenderer.java @@ -152,7 +152,9 @@ class NetDbRenderer { buf.append("<table id=\"leasesetsummary\">\n"); } buf.append("<tr><th colspan=\"3\">Leaseset Summary</th>") - .append("<th><a href=\"/configadvanced\">Configure Floodfill Participation</a></th></tr>\n") + .append("<th><a href=\"/configadvanced\" title=\"").append(_t("Manually Configure Floodfill Participation")).append("\">[") + .append(_t("Configure Floodfill Participation")) + .append("]</a></th></tr>\n") .append("<tr><td><b>Total Leasesets:</b></td><td colspan=\"3\">").append(leases.size()).append("</td></tr>\n"); if (debug) { buf.append("<tr><td><b>Published (RAP) Leasesets:</b></td><td colspan=\"3\">").append(netdb.getKnownLeaseSets()).append("</td></tr>\n") @@ -217,7 +219,8 @@ class NetDbRenderer { buf.append("<a href=\"http://").append(b32).append("\">").append(b32).append("</a></td>"); String host = _context.namingService().reverseLookup(dest); if (host == null) { - buf.append("<td>").append("<a href=\"/susidns/addressbook.jsp?book=private&destination=") + buf.append("<td>").append("<a title=\"").append(_t("Add to addressbook")) + .append("\" href=\"/susidns/addressbook.jsp?book=private&destination=") .append(dest.toBase64()).append("#add\">").append(_t("Add to local addressbook")).append("</a></td>"); } } else { @@ -230,7 +233,8 @@ class NetDbRenderer { buf.append("<code>").append(dest.toBase64().substring(0, 6)).append("</code></th>") .append("</tr>\n<tr>") .append("<td><a href=\"http://").append(b32).append("\">").append(b32).append("</a></td>\n") - .append("<td><a href=\"/susidns/addressbook.jsp?book=private&destination=") + .append("<td><a title=\"").append(_t("Add to addressbook")) + .append("\" href=\"/susidns/addressbook.jsp?book=private&destination=") .append(dest.toBase64()).append("#add\">").append(_t("Add to local addressbook")).append("</a></td>"); } } @@ -478,7 +482,9 @@ class NetDbRenderer { } else { buf.append("<b>" + _t("Peer info for") + ":</b> <code>").append(hash).append("</code></th><th>"); if (!full) { - buf.append("<a class=\"viewfullentry\" href=\"netdb?r=").append(hash.substring(0, 6)).append("\" >").append(_t("Full entry")).append("</a>"); + buf.append("<a title=\"").append(_t("View extended router info")) + .append("\" class=\"viewfullentry\" href=\"netdb?r=").append(hash.substring(0, 6)) + .append("\" >[").append(_t("Full entry")).append("]</a>"); } } buf.append("</th></tr>\n<tr>"); diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java index 9d2ad5199d..a81a637c02 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java @@ -820,7 +820,7 @@ public class SummaryHelper extends HelperBase { public String getFirewallAndReseedStatus() { StringBuilder buf = new StringBuilder(256); if (showFirewallWarning()) { - buf.append("<h4 id=\"sb_warning\"><a href=\"/confignet\" target=\"_top\" title=\"") + buf.append("<h4 id=\"sb_warning\"><a href=\"/help#configurationhelp\" target=\"_top\" title=\"") .append(_t("Help with firewall configuration")) .append("\">") .append(_t("Check network connection and NAT/firewall")) diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java index b30d3a3824..652767842d 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java @@ -768,7 +768,7 @@ class SybilRenderer { } else { buf.append("<th colspan=\"2\"><b>" + _t("Router") + ":</b> <code>").append(hash).append("</code>\n"); if (!full) { - buf.append("</th><th><a class=\"viewfullentry\" href=\"netdb?r=").append(hash.substring(0, 6)).append("\" >").append(_t("Full entry")).append("</a></th><th>"); + buf.append("</th><th><a title=\"View extended router info\" class=\"viewfullentry\" href=\"netdb?r=").append(hash.substring(0, 6)).append("\" >[").append(_t("Full entry")).append("]</a></th><th>"); } buf.append("<img src=\"/imagegen/id?s=32&c=" + hash.replace("=", "%3d") + "\" height=\"32\" width=\"32\"> "); buf.append("</th></tr>\n"); diff --git a/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java index 55b124e747..88aa523cb1 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java @@ -33,7 +33,7 @@ class TunnelRenderer { } public void renderStatusHTML(Writer out) throws IOException { - out.write("<h3 class=\"tabletitle\" id=\"exploratorytunnels\"><a name=\"exploratory\" ></a>" + _t("Exploratory tunnels") + " (<a href=\"/configtunnels#exploratory\">" + _t("configure") + "</a>)</h3>\n"); + out.write("<h3 class=\"tabletitle\" id=\"exploratorytunnels\"><a name=\"exploratory\" ></a>" + _t("Exploratory tunnels") + " <a href=\"/configtunnels#exploratory\" title=\"" + _t("Configure tunnels") + "\">[" + _t("configure") + "]</a></h3>\n"); renderPool(out, _context.tunnelManager().getInboundExploratoryPool(), _context.tunnelManager().getOutboundExploratoryPool()); List<Hash> destinations = null; @@ -57,7 +57,7 @@ class TunnelRenderer { out.write("<h3 class=\"tabletitle\"><a name=\"" + client.toBase64().substring(0,4) + "\" ></a>" + _t("Client tunnels for") + ' ' + DataHelper.escapeHTML(_t(name))); if (isLocal) - out.write(" (<a href=\"/configtunnels#" + client.toBase64().substring(0,4) +"\">" + _t("configure") + "</a>)</h3>\n"); + out.write(" <a href=\"/configtunnels#" + client.toBase64().substring(0,4) +"\" title=\"" + _t("Configure tunnels for session") + "\">[" + _t("configure") + "]</a></h3>\n"); else out.write(" (" + _t("dead") + ")</h3>\n"); renderPool(out, in, outPool); diff --git a/apps/routerconsole/jsp/config.jsp b/apps/routerconsole/jsp/config.jsp index 44c1f10c12..c7cbac7e4f 100644 --- a/apps/routerconsole/jsp/config.jsp +++ b/apps/routerconsole/jsp/config.jsp @@ -25,7 +25,7 @@ <input type="hidden" name="action" value="blah" > <input type="hidden" name="ratesOnly" value="1" > - <h3 id="bwlimiter" class="tabletitle"><%=intl._t("Bandwidth limiter")%></h3> + <h3 id="bwlimiter" class="tabletitle"><%=intl._t("Bandwidth Limiter")%> <a href="confignet">[<%=intl._t("Advanced Network Configuration")%>]</a></h3> <table id="bandwidthconfig" class="configtable"> <tr><td class="infohelp" colspan="2"> <b><%=intl._t("I2P will work best if you configure your rates to match the speed of your internet connection.")%></b> @@ -76,9 +76,6 @@ out.print(intl._t("The higher the share bandwidth the more you improve your anonymity and help the network.")); } %></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")%>" > diff --git a/apps/routerconsole/jsp/configadvanced.jsp b/apps/routerconsole/jsp/configadvanced.jsp index a235bb3ab9..2af2d4d84e 100644 --- a/apps/routerconsole/jsp/configadvanced.jsp +++ b/apps/routerconsole/jsp/configadvanced.jsp @@ -56,7 +56,7 @@ </table> </form> -<h3 id="advancedconfig" class="tabletitle"><%=intl._t("Advanced I2P Configuration")%></h3><b> +<h3 id="advancedconfig" class="tabletitle"><%=intl._t("Advanced I2P Configuration")%> <a title="Help with additional configuration settings" href="/help#advancedsettings">[Additional Options]</a></h3><b> <% if (advancedhelper.isAdvanced()) { %> <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > diff --git a/apps/routerconsole/jsp/configlogging.jsp b/apps/routerconsole/jsp/configlogging.jsp index a899eb53a5..5a09029441 100644 --- a/apps/routerconsole/jsp/configlogging.jsp +++ b/apps/routerconsole/jsp/configlogging.jsp @@ -22,7 +22,7 @@ <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="action" value="blah" > - <h3 class="tabletitle"><%=intl._t("Configure I2P Logging Options")%></h3> + <h3 class="tabletitle"><%=intl._t("Configure I2P Logging Options")%> <a title="<%=intl._t("View Router Logs")%>" href="/logs">[<%=intl._t("View Logs")%>]</a></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" />" > diff --git a/apps/routerconsole/jsp/confignet.jsp b/apps/routerconsole/jsp/confignet.jsp index 923dbccc53..5079d8b1d8 100644 --- a/apps/routerconsole/jsp/confignet.jsp +++ b/apps/routerconsole/jsp/confignet.jsp @@ -22,27 +22,21 @@ <form action="" method="POST"> <input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="action" value="blah" > - <h3 id="iptransport" class="tabletitle"><%=intl._t("IP and Transport Configuration")%></h3> + <h3 id="iptransport" class="tabletitle"><%=intl._t("IP and Transport Configuration")%> <a title="<%=intl._t("Help with router configuration")%>" href="/help#configurationhelp">[<%=intl._t("Configuration Help")%>]</a></h3> <table id="netconfig" class="configtable"> <tr> <td class="infohelp"> - <b><%=intl._t("The default settings will work for most people.")%> - <a href="#chelp"><%=intl._t("There is help below.")%></a></b> + <b><%=intl._t("The default settings will work for most people.")%></b> <%=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> + <th id="upnpconfig"><%=intl._t("UPnP Configuration")%> <a href="peers#upnp">[<%=intl._t("UPnP Status")%>]</a></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> + <%=intl._t("Enable UPnP to open firewall ports")%> </td> </tr> <tr> @@ -106,6 +100,11 @@ <tr> <th id="udpconfig"><%=intl._t("UDP Configuration")%></th> </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> <td> <%=intl._t("UDP port:")%> diff --git a/apps/routerconsole/jsp/configservice.jsp b/apps/routerconsole/jsp/configservice.jsp index 772323c131..5e631b87d3 100644 --- a/apps/routerconsole/jsp/configservice.jsp +++ b/apps/routerconsole/jsp/configservice.jsp @@ -68,12 +68,10 @@ <%=intl._t("You may want to consider shutting down gracefully, as above, then running uninstall_i2p_service_winnt.bat.")%></p> <% } %> - <h3 class="ptitle" id="servicedebug"><%=intl._t("Debugging")%></h3> + <h3 class="ptitle" id="servicedebug"><%=intl._t("Debugging")%> <a href="/jobs">[<%=intl._t("View the job queue")%>]</a></h3> <% if (System.getProperty("wrapper.version") != null) { %> <p class="infohelp"> <%=intl._t("At times, it may be helpful to debug I2P by getting a thread dump. To do so, please select the following option and review the thread dumped to <a href=\"logs.jsp#servicelogs\">wrapper.log</a>.")%></p> - <p><a href="/jobs"> - <%=intl._t("View the job queue")%></a> <hr> <% } %> <div class="formaction" id="dumpthreads"> diff --git a/apps/routerconsole/jsp/configstats.jsp b/apps/routerconsole/jsp/configstats.jsp index 0b20c11331..c44de0bca0 100644 --- a/apps/routerconsole/jsp/configstats.jsp +++ b/apps/routerconsole/jsp/configstats.jsp @@ -110,7 +110,7 @@ Warning - Log with care, stat file grows without limit.<br> } // shouldShowLog -%> <td align="center"><b><%=intl._t("Graph")%></b></td> +%> <td align="center"><b title="<%=intl._t("Select stats for visualization on /graphs")%>"><%=intl._t("Graph")%></b></td> <td></td></tr> <% } // end iterating over required groups for the current stat %> diff --git a/apps/routerconsole/jsp/help.jsp b/apps/routerconsole/jsp/help.jsp index b420456bcb..a84dc39ae8 100644 --- a/apps/routerconsole/jsp/help.jsp +++ b/apps/routerconsole/jsp/help.jsp @@ -29,7 +29,7 @@ <jsp:setProperty name="contenthelper" property="maxLines" value="256" /> <jsp:setProperty name="contenthelper" property="startAtBeginning" value="true" /> <jsp:getProperty name="contenthelper" property="textContent" /> -<p id="fullhistory"><a href="/history.txt">View the full change log</a></p> +<p id="fullhistory"><a href="/history.txt" target="_blank">View the full change log</a></p> </div> </div></body></html> diff --git a/apps/routerconsole/jsp/home.jsp b/apps/routerconsole/jsp/home.jsp index a0b5344e58..a71bdcc499 100644 --- a/apps/routerconsole/jsp/home.jsp +++ b/apps/routerconsole/jsp/home.jsp @@ -97,7 +97,7 @@ if (homehelper.shouldShowSearch()) { %> <div class="search"> - <form action="/search.jsp" method="POST"> + <form action="/search.jsp" target="_blank" method="POST"> <table class="search"><tr><td align="right"> <input size="40" type="text" class="search" name="query" /> </td><td align="left"> diff --git a/apps/routerconsole/jsp/logs.jsp b/apps/routerconsole/jsp/logs.jsp index 11eec9cbd8..006e1fdb45 100644 --- a/apps/routerconsole/jsp/logs.jsp +++ b/apps/routerconsole/jsp/logs.jsp @@ -64,7 +64,7 @@ </td></tr> </tbody></table> -<h3 class="tabletitle"><%=intl._t("Router Logs")%> (<a href="configlogging"><%=intl._t("configure")%></a>)</h3> +<h3 class="tabletitle"><%=intl._t("Router Logs")%> <a title="<%=intl._t("Configure router logging options")%>" href="configlogging">[<%=intl._t("Configure")%>]</a></h3> <table id="routerlogs" class="logtable"><tbody> <tr><td> <jsp:getProperty name="logsHelper" property="logs" /> diff --git a/apps/susidns/src/jsp/addressbook.jsp b/apps/susidns/src/jsp/addressbook.jsp index eb940a187b..5521c52526 100644 --- a/apps/susidns/src/jsp/addressbook.jsp +++ b/apps/susidns/src/jsp/addressbook.jsp @@ -112,8 +112,8 @@ ${book.loadBookMessages} <a href="addressbook?filter=xn--&begin=0&end=49"><%=intl._t("other")%></a> <a href="addressbook?filter=none&begin=0&end=49"><%=intl._t("all")%></a></p> <c:if test="${book.hasFilter}"> -<p><%=intl._t("Current filter")%>: ${book.filter} -(<a href="addressbook?filter=none&begin=0&end=49"><%=intl._t("clear filter")%></a>)</p> +<p><%=intl._t("Current filter")%>: <b>${book.filter}</b> +<a href="addressbook?filter=none&begin=0&end=49"><%=intl._t("clear filter")%></a></p> </c:if> </div> -- GitLab