More UI whitespace cleanups and other miscellaneous UI goodness.

This commit is contained in:
z3d
2009-10-17 23:34:38 +00:00
parent 10bb3c100e
commit fadda4ceec
10 changed files with 59 additions and 19 deletions

View File

@@ -642,11 +642,11 @@ public class NTCPTransport extends TransportImpl {
long totalRecv = 0;
StringBuilder buf = new StringBuilder(512);
buf.append("<h3 id=\"ntcpcon\">NTCP connections: ").append(peers.size());
buf.append("<div class=\"wideload\"><h3 id=\"ntcpcon\">NTCP connections: ").append(peers.size());
buf.append(". Limit: ").append(getMaxConnections());
buf.append(". Timeout: ").append(DataHelper.formatDuration(_pumper.getIdleTimeout()));
buf.append(".</h3>\n" +
"<div class=\"wideload\"><table>\n" +
"<table>\n" +
"<tr><th><a href=\"#def.peer\">Peer</a></th>" +
"<th>Dir</th>" +
"<th align=\"right\"><a href=\"#def.idle\">Idle</a></th>" +
@@ -730,7 +730,7 @@ public class NTCPTransport extends TransportImpl {
"</td></tr>\n");
}
buf.append("</table></div>\n");
buf.append("</table>\n");
out.write(buf.toString());
buf.setLength(0);
}

View File

@@ -1771,7 +1771,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
buf.append(". Limit: ").append(getMaxConnections());
buf.append(". Timeout: ").append(DataHelper.formatDuration(_expireTimeout));
buf.append(".</h3>\n");
buf.append("<div class=\"wideload\"><table>\n");
buf.append("<table>\n");
buf.append("<tr><th class=\"smallhead\" nowrap><a href=\"#def.peer\">Peer</a>");
if (sortFlags != FLAG_ALPHA)
buf.append(" <a href=\"").append(urlBase).append("?sort=0\">V</a> ");