forked from I2P_Developers/i2p.i2p
Fix repeated ids that should be classes
This commit is contained in:
@@ -200,7 +200,7 @@ class NetDbRenderer {
|
|||||||
for (LeaseSet ls : leases) {
|
for (LeaseSet ls : leases) {
|
||||||
Destination dest = ls.getDestination();
|
Destination dest = ls.getDestination();
|
||||||
Hash key = dest.calculateHash();
|
Hash key = dest.calculateHash();
|
||||||
buf.append("<table id=\"leaseset\">\n")
|
buf.append("<table class=\"leaseset\">\n")
|
||||||
.append("<tr><th><b>").append(_t("LeaseSet")).append(":</b> ").append(key.toBase64()).append("</th>");
|
.append("<tr><th><b>").append(_t("LeaseSet")).append(":</b> ").append(key.toBase64()).append("</th>");
|
||||||
if (_context.clientManager().isLocal(dest)) {
|
if (_context.clientManager().isLocal(dest)) {
|
||||||
buf.append("<th><b><a href=\"tunnels#" + key.toBase64().substring(0,4) + "\">" + _t("Local") + "</a> ");
|
buf.append("<th><b><a href=\"tunnels#" + key.toBase64().substring(0,4) + "\">" + _t("Local") + "</a> ");
|
||||||
@@ -471,14 +471,14 @@ class NetDbRenderer {
|
|||||||
*/
|
*/
|
||||||
private void renderRouterInfo(StringBuilder buf, RouterInfo info, boolean isUs, boolean full) {
|
private void renderRouterInfo(StringBuilder buf, RouterInfo info, boolean isUs, boolean full) {
|
||||||
String hash = info.getIdentity().getHash().toBase64();
|
String hash = info.getIdentity().getHash().toBase64();
|
||||||
buf.append("<table id=\"netdbentry\">")
|
buf.append("<table class=\"netdbentry\">")
|
||||||
.append("<tr><th colspan=\"2\"><a name=\"").append(hash.substring(0, 6)).append("\" ></a>");
|
.append("<tr><th colspan=\"2\"><a name=\"").append(hash.substring(0, 6)).append("\" ></a>");
|
||||||
if (isUs) {
|
if (isUs) {
|
||||||
buf.append("<a name=\"our-info\" ></a><b>" + _t("Our info") + ":</b> <code>").append(hash).append("</code></th><th>");
|
buf.append("<a name=\"our-info\" ></a><b>" + _t("Our info") + ":</b> <code>").append(hash).append("</code></th><th>");
|
||||||
} else {
|
} else {
|
||||||
buf.append("<b>" + _t("Peer info for") + ":</b> <code>").append(hash).append("</code></th><th id=\"viewfullentry\">");
|
buf.append("<b>" + _t("Peer info for") + ":</b> <code>").append(hash).append("</code></th><th>");
|
||||||
if (!full) {
|
if (!full) {
|
||||||
buf.append("<a href=\"netdb?r=").append(hash.substring(0, 6)).append("\" >").append(_t("Full entry")).append("</a>");
|
buf.append("<a 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>");
|
||||||
|
@@ -582,7 +582,7 @@ class SybilRenderer {
|
|||||||
boolean found = false;
|
boolean found = false;
|
||||||
for (String s : foo) {
|
for (String s : foo) {
|
||||||
int count = oc.count(s);
|
int count = oc.count(s);
|
||||||
buf.append("<p id=\"family\"><b>").append(count).append(" floodfills in declared family \"").append(DataHelper.escapeHTML(s) + '"')
|
buf.append("<p class=\"family\"><b>").append(count).append(" floodfills in declared family \"").append(DataHelper.escapeHTML(s) + '"')
|
||||||
.append("</b></p>");
|
.append("</b></p>");
|
||||||
for (RouterInfo info : ris) {
|
for (RouterInfo info : ris) {
|
||||||
String fam = info.getOption("family");
|
String fam = info.getOption("family");
|
||||||
@@ -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 href=\"netdb?r=").append(hash.substring(0, 6)).append("\" >").append(_t("Full entry")).append("</a></th><th>");
|
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("<img src=\"/imagegen/id?s=32&c=" + hash.replace("=", "%3d") + "\" height=\"32\" width=\"32\"> ");
|
buf.append("<img src=\"/imagegen/id?s=32&c=" + hash.replace("=", "%3d") + "\" height=\"32\" width=\"32\"> ");
|
||||||
buf.append("</th></tr>\n");
|
buf.append("</th></tr>\n");
|
||||||
|
@@ -637,7 +637,7 @@ public class WebMail extends HttpServlet
|
|||||||
}
|
}
|
||||||
if( prepareAttachment ) {
|
if( prepareAttachment ) {
|
||||||
if( html ) {
|
if( html ) {
|
||||||
out.println( "<hr><div id=\"attached\"><p class=\"mailbody\">" );
|
out.println( "<hr><div class=\"attached\">" );
|
||||||
String type = mailPart.type;
|
String type = mailPart.type;
|
||||||
if (type != null && type.startsWith("image/")) {
|
if (type != null && type.startsWith("image/")) {
|
||||||
// we at least show images safely...
|
// we at least show images safely...
|
||||||
@@ -658,7 +658,7 @@ public class WebMail extends HttpServlet
|
|||||||
mailPart.hashCode() + "\">" + _t("Download attachment {0}", ident) + "</a>" +
|
mailPart.hashCode() + "\">" + _t("Download attachment {0}", ident) + "</a>" +
|
||||||
" (" + _t("File is packed into a zipfile for security reasons.") + ')');
|
" (" + _t("File is packed into a zipfile for security reasons.") + ')');
|
||||||
}
|
}
|
||||||
out.println( "</p></div>" );
|
out.println( "</div>" );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
out.println( _t("Attachment ({0}).", ident) );
|
out.println( _t("Attachment ({0}).", ident) );
|
||||||
|
Reference in New Issue
Block a user