Update links, add tooltips etc.

This commit is contained in:
str4d
2016-05-23 11:02:10 +00:00
parent bbc2454f36
commit f95100a1ff
16 changed files with 38 additions and 36 deletions

View File

@@ -78,8 +78,8 @@ class BanlistRenderer {
buf.append(_t(entry.cause)); buf.append(_t(entry.cause));
} }
if (!key.equals(Hash.FAKE_HASH)) { if (!key.equals(Hash.FAKE_HASH)) {
buf.append(" (<a href=\"configpeer?peer=").append(key.toBase64()) buf.append(" <a href=\"configpeer?peer=").append(key.toBase64())
.append("#unsh\">").append(_t("unban now")).append("</a>)"); .append("#unsh\">[").append(_t("unban now")).append("]</a>");
} }
buf.append("</li>\n"); buf.append("</li>\n");
} }

View File

@@ -322,6 +322,8 @@ public class GraphHelper extends FormHandler {
_out.write("</a>"); _out.write("</a>");
_out.write("</p><p><i>" + _t("All times are UTC.") + "</i></p>\n"); _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) { } catch (IOException ioe) {
ioe.printStackTrace(); ioe.printStackTrace();
} }
@@ -353,7 +355,7 @@ public class GraphHelper extends FormHandler {
// So just use the "shared/console nonce". // So just use the "shared/console nonce".
String nonce = CSSHelper.getNonce(); String nonce = CSSHelper.getNonce();
try { 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" + _out.write("<form action=\"graphs\" method=\"POST\">\n" +
"<input type=\"hidden\" name=\"action\" value=\"save\">\n" + "<input type=\"hidden\" name=\"action\" value=\"save\">\n" +
"<input type=\"hidden\" name=\"nonce\" value=\"" + nonce + "\" >\n"); "<input type=\"hidden\" name=\"nonce\" value=\"" + nonce + "\" >\n");

View File

@@ -152,7 +152,9 @@ class NetDbRenderer {
buf.append("<table id=\"leasesetsummary\">\n"); buf.append("<table id=\"leasesetsummary\">\n");
} }
buf.append("<tr><th colspan=\"3\">Leaseset Summary</th>") 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"); .append("<tr><td><b>Total Leasesets:</b></td><td colspan=\"3\">").append(leases.size()).append("</td></tr>\n");
if (debug) { if (debug) {
buf.append("<tr><td><b>Published (RAP) Leasesets:</b></td><td colspan=\"3\">").append(netdb.getKnownLeaseSets()).append("</td></tr>\n") 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>"); buf.append("<a href=\"http://").append(b32).append("\">").append(b32).append("</a></td>");
String host = _context.namingService().reverseLookup(dest); String host = _context.namingService().reverseLookup(dest);
if (host == null) { if (host == null) {
buf.append("<td>").append("<a href=\"/susidns/addressbook.jsp?book=private&amp;destination=") buf.append("<td>").append("<a title=\"").append(_t("Add to addressbook"))
.append("\" href=\"/susidns/addressbook.jsp?book=private&amp;destination=")
.append(dest.toBase64()).append("#add\">").append(_t("Add to local addressbook")).append("</a></td>"); .append(dest.toBase64()).append("#add\">").append(_t("Add to local addressbook")).append("</a></td>");
} }
} else { } else {
@@ -230,7 +233,8 @@ class NetDbRenderer {
buf.append("<code>").append(dest.toBase64().substring(0, 6)).append("</code></th>") buf.append("<code>").append(dest.toBase64().substring(0, 6)).append("</code></th>")
.append("</tr>\n<tr>") .append("</tr>\n<tr>")
.append("<td><a href=\"http://").append(b32).append("\">").append(b32).append("</a></td>\n") .append("<td><a href=\"http://").append(b32).append("\">").append(b32).append("</a></td>\n")
.append("<td><a href=\"/susidns/addressbook.jsp?book=private&amp;destination=") .append("<td><a title=\"").append(_t("Add to addressbook"))
.append("\" href=\"/susidns/addressbook.jsp?book=private&amp;destination=")
.append(dest.toBase64()).append("#add\">").append(_t("Add to local addressbook")).append("</a></td>"); .append(dest.toBase64()).append("#add\">").append(_t("Add to local addressbook")).append("</a></td>");
} }
} }
@@ -478,7 +482,9 @@ class NetDbRenderer {
} else { } else {
buf.append("<b>" + _t("Peer info for") + ":</b>&nbsp;<code>").append(hash).append("</code></th><th>"); buf.append("<b>" + _t("Peer info for") + ":</b>&nbsp;<code>").append(hash).append("</code></th><th>");
if (!full) { 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>"); buf.append("</th></tr>\n<tr>");

View File

@@ -820,7 +820,7 @@ public class SummaryHelper extends HelperBase {
public String getFirewallAndReseedStatus() { public String getFirewallAndReseedStatus() {
StringBuilder buf = new StringBuilder(256); StringBuilder buf = new StringBuilder(256);
if (showFirewallWarning()) { 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(_t("Help with firewall configuration"))
.append("\">") .append("\">")
.append(_t("Check network connection and NAT/firewall")) .append(_t("Check network connection and NAT/firewall"))

View File

@@ -768,7 +768,7 @@ class SybilRenderer {
} else { } else {
buf.append("<th colspan=\"2\"><b>" + _t("Router") + ":</b> <code>").append(hash).append("</code>\n"); buf.append("<th colspan=\"2\"><b>" + _t("Router") + ":</b> <code>").append(hash).append("</code>\n");
if (!full) { 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&amp;c=" + hash.replace("=", "%3d") + "\" height=\"32\" width=\"32\"> "); buf.append("<img src=\"/imagegen/id?s=32&amp;c=" + hash.replace("=", "%3d") + "\" height=\"32\" width=\"32\"> ");
buf.append("</th></tr>\n"); buf.append("</th></tr>\n");

View File

@@ -33,7 +33,7 @@ class TunnelRenderer {
} }
public void renderStatusHTML(Writer out) throws IOException { 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()); renderPool(out, _context.tunnelManager().getInboundExploratoryPool(), _context.tunnelManager().getOutboundExploratoryPool());
List<Hash> destinations = null; List<Hash> destinations = null;
@@ -57,7 +57,7 @@ class TunnelRenderer {
out.write("<h3 class=\"tabletitle\"><a name=\"" + client.toBase64().substring(0,4) out.write("<h3 class=\"tabletitle\"><a name=\"" + client.toBase64().substring(0,4)
+ "\" ></a>" + _t("Client tunnels for") + ' ' + DataHelper.escapeHTML(_t(name))); + "\" ></a>" + _t("Client tunnels for") + ' ' + DataHelper.escapeHTML(_t(name)));
if (isLocal) 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 else
out.write(" (" + _t("dead") + ")</h3>\n"); out.write(" (" + _t("dead") + ")</h3>\n");
renderPool(out, in, outPool); renderPool(out, in, outPool);

View File

@@ -25,7 +25,7 @@
<input type="hidden" name="action" value="blah" > <input type="hidden" name="action" value="blah" >
<input type="hidden" name="ratesOnly" value="1" > <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")%>&nbsp;<a href="confignet">[<%=intl._t("Advanced Network Configuration")%>]</a></h3>
<table id="bandwidthconfig" class="configtable"> <table id="bandwidthconfig" class="configtable">
<tr><td class="infohelp" colspan="2"> <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> <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.")); out.print(intl._t("The higher the share bandwidth the more you improve your anonymity and help the network."));
} }
%></td></tr> %></td></tr>
<tr><td colspan="2">
<a href="confignet"><%=intl._t("Advanced network configuration page")%></a>
</td></tr>
<tr><td class="optionsave" colspan="2"> <tr><td class="optionsave" colspan="2">
<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" > <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
<input type="submit" class="accept" name="save" value="<%=intl._t("Save changes")%>" > <input type="submit" class="accept" name="save" value="<%=intl._t("Save changes")%>" >

View File

@@ -56,7 +56,7 @@
</table> </table>
</form> </form>
<h3 id="advancedconfig" class="tabletitle"><%=intl._t("Advanced I2P Configuration")%></h3><b> <h3 id="advancedconfig" class="tabletitle"><%=intl._t("Advanced I2P Configuration")%>&nbsp;<a title="Help with additional configuration settings" href="/help#advancedsettings">[Additional Options]</a></h3><b>
<% if (advancedhelper.isAdvanced()) { %> <% if (advancedhelper.isAdvanced()) { %>
<form action="" method="POST"> <form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="nonce" value="<%=pageNonce%>" >

View File

@@ -22,7 +22,7 @@
<form action="" method="POST"> <form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="nonce" value="<%=pageNonce%>" >
<input type="hidden" name="action" value="blah" > <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")%>&nbsp;<a title="<%=intl._t("View Router Logs")%>" href="/logs">[<%=intl._t("View Logs")%>]</a></h3>
<table id="loggingoptions" border="0" cellspacing="5"> <table id="loggingoptions" border="0" cellspacing="5">
<tr><td class="mediumtags" align="right"><b><%=intl._t("Log file")%>:</b></td> <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" />" > <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" />" >

View File

@@ -22,27 +22,21 @@
<form action="" method="POST"> <form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="nonce" value="<%=pageNonce%>" >
<input type="hidden" name="action" value="blah" > <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")%>&nbsp;<a title="<%=intl._t("Help with router configuration")%>" href="/help#configurationhelp">[<%=intl._t("Configuration Help")%>]</a></h3>
<table id="netconfig" class="configtable"> <table id="netconfig" class="configtable">
<tr> <tr>
<td class="infohelp"> <td class="infohelp">
<b><%=intl._t("The default settings will work for most people.")%> <b><%=intl._t("The default settings will work for most people.")%></b>
<a href="#chelp"><%=intl._t("There is help below.")%></a></b>
<%=intl._t("Changing these settings will restart your router.")%> <%=intl._t("Changing these settings will restart your router.")%>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="infowarn"> <th id="upnpconfig"><%=intl._t("UPnP Configuration")%>&nbsp;<a href="peers#upnp">[<%=intl._t("UPnP Status")%>]</a></th>
<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>
<tr> <tr>
<td> <td>
<input type="checkbox" class="optbox" name="upnp" value="true" <jsp:getProperty name="nethelper" property="upnpChecked" /> > <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> </td>
</tr> </tr>
<tr> <tr>
@@ -106,6 +100,11 @@
<tr> <tr>
<th id="udpconfig"><%=intl._t("UDP Configuration")%></th> <th id="udpconfig"><%=intl._t("UDP Configuration")%></th>
</tr> </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> <tr>
<td> <td>
<%=intl._t("UDP port:")%> <%=intl._t("UDP port:")%>

View File

@@ -68,12 +68,10 @@
<%=intl._t("You may want to consider shutting down gracefully, as above, then running uninstall_i2p_service_winnt.bat.")%></p> <%=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")%>&nbsp;<a href="/jobs">[<%=intl._t("View the job queue")%>]</a></h3>
<% if (System.getProperty("wrapper.version") != null) { %> <% if (System.getProperty("wrapper.version") != null) { %>
<p class="infohelp"> <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> <%=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> <hr>
<% } %> <% } %>
<div class="formaction" id="dumpthreads"> <div class="formaction" id="dumpthreads">

View File

@@ -110,7 +110,7 @@ Warning - Log with care, stat file grows without limit.<br>
} // shouldShowLog } // 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> <td></td></tr>
<% <%
} // end iterating over required groups for the current stat %> } // end iterating over required groups for the current stat %>

View File

@@ -29,7 +29,7 @@
<jsp:setProperty name="contenthelper" property="maxLines" value="256" /> <jsp:setProperty name="contenthelper" property="maxLines" value="256" />
<jsp:setProperty name="contenthelper" property="startAtBeginning" value="true" /> <jsp:setProperty name="contenthelper" property="startAtBeginning" value="true" />
<jsp:getProperty name="contenthelper" property="textContent" /> <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>
</div></body></html> </div></body></html>

View File

@@ -97,7 +97,7 @@
if (homehelper.shouldShowSearch()) { if (homehelper.shouldShowSearch()) {
%> %>
<div class="search"> <div class="search">
<form action="/search.jsp" method="POST"> <form action="/search.jsp" target="_blank" method="POST">
<table class="search"><tr><td align="right"> <table class="search"><tr><td align="right">
<input size="40" type="text" class="search" name="query" /> <input size="40" type="text" class="search" name="query" />
</td><td align="left"> </td><td align="left">

View File

@@ -64,7 +64,7 @@
</td></tr> </td></tr>
</tbody></table> </tbody></table>
<h3 class="tabletitle"><%=intl._t("Router Logs")%> (<a href="configlogging"><%=intl._t("configure")%></a>)</h3> <h3 class="tabletitle"><%=intl._t("Router Logs")%>&nbsp;<a title="<%=intl._t("Configure router logging options")%>" href="configlogging">[<%=intl._t("Configure")%>]</a></h3>
<table id="routerlogs" class="logtable"><tbody> <table id="routerlogs" class="logtable"><tbody>
<tr><td> <tr><td>
<jsp:getProperty name="logsHelper" property="logs" /> <jsp:getProperty name="logsHelper" property="logs" />

View File

@@ -112,8 +112,8 @@ ${book.loadBookMessages}
<a href="addressbook?filter=xn--&amp;begin=0&amp;end=49"><%=intl._t("other")%></a> <a href="addressbook?filter=xn--&amp;begin=0&amp;end=49"><%=intl._t("other")%></a>
<a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("all")%></a></p> <a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("all")%></a></p>
<c:if test="${book.hasFilter}"> <c:if test="${book.hasFilter}">
<p><%=intl._t("Current filter")%>: ${book.filter} <p><%=intl._t("Current filter")%>: <b>${book.filter}</b>
(<a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("clear filter")%></a>)</p> <a href="addressbook?filter=none&amp;begin=0&amp;end=49"><%=intl._t("clear filter")%></a></p>
</c:if> </c:if>
</div> </div>