Spacing tweaks for legibility/consistency

This commit is contained in:
str4d
2017-03-06 03:38:30 +00:00
parent 50450ecba6
commit 73708041e8
3 changed files with 8 additions and 7 deletions

View File

@ -131,10 +131,10 @@ class TunnelRenderer {
if (displayed > DISPLAY_LIMIT) if (displayed > DISPLAY_LIMIT)
out.write("<div class=\"statusnotes\"><b>" + _t("Limited display to the {0} tunnels with the highest usage", DISPLAY_LIMIT) + "</b></div>\n"); out.write("<div class=\"statusnotes\"><b>" + _t("Limited display to the {0} tunnels with the highest usage", DISPLAY_LIMIT) + "</b></div>\n");
if (inactive > 0) if (inactive > 0)
out.write("<div class=\"statusnotes\"><b>" + _t("Inactive participating tunnels") + ": " + inactive + "</b></div>\n"); out.write("<div class=\"statusnotes\"><b>" + _t("Inactive participating tunnels") + ":&nbsp;&nbsp;" + inactive + "</b></div>\n");
else if (displayed <= 0) else if (displayed <= 0)
out.write("<div class=\"statusnotes\"><b>" + _t("none") + "</b></div>\n"); out.write("<div class=\"statusnotes\"><b>" + _t("none") + "</b></div>\n");
out.write("<div class=\"statusnotes\"><b>" + _t("Lifetime bandwidth usage") + ": " + DataHelper.formatSize2(processed*1024) + "B</b></div>\n"); out.write("<div class=\"statusnotes\"><b>" + _t("Lifetime bandwidth usage") + ":&nbsp;&nbsp;" + DataHelper.formatSize2(processed*1024) + "B</b></div>\n");
//renderPeers(out); //renderPeers(out);
} }
@ -214,7 +214,7 @@ class TunnelRenderer {
// PooledTunnelCreatorConfig // PooledTunnelCreatorConfig
List<?> pending = in.listPending(); List<?> pending = in.listPending();
if (!pending.isEmpty()) { if (!pending.isEmpty()) {
out.write("<div class=\"statusnotes\"><center><b>" + _t("Build in progress") + ": " + pending.size() + " " + _t("inbound") + "</b></center></div>\n"); out.write("<div class=\"statusnotes\"><center><b>" + _t("Build in progress") + ":&nbsp;&nbsp;" + pending.size() + " " + _t("inbound") + "</b></center></div>\n");
live += pending.size(); live += pending.size();
} }
} }
@ -222,13 +222,13 @@ class TunnelRenderer {
// PooledTunnelCreatorConfig // PooledTunnelCreatorConfig
List<?> pending = outPool.listPending(); List<?> pending = outPool.listPending();
if (!pending.isEmpty()) { if (!pending.isEmpty()) {
out.write("<div class=\"statusnotes\"><center><b>" + _t("Build in progress") + ": " + pending.size() + " " + _t("outbound") + "</b></center></div>\n"); out.write("<div class=\"statusnotes\"><center><b>" + _t("Build in progress") + ":&nbsp;&nbsp;" + pending.size() + " " + _t("outbound") + "</b></center></div>\n");
live += pending.size(); live += pending.size();
} }
} }
if (live <= 0) if (live <= 0)
out.write("<div class=\"statusnotes\"><center><b>" + _t("No tunnels; waiting for the grace period to end.") + "</b></center></div>\n"); out.write("<div class=\"statusnotes\"><center><b>" + _t("No tunnels; waiting for the grace period to end.") + "</b></center></div>\n");
out.write("<div class=\"statusnotes\"><center><b>" + _t("Lifetime bandwidth usage") + ": " + out.write("<div class=\"statusnotes\"><center><b>" + _t("Lifetime bandwidth usage") + ":&nbsp;&nbsp;" +
DataHelper.formatSize2(processedIn*1024) + "B " + _t("in") + ", " + DataHelper.formatSize2(processedIn*1024) + "B " + _t("in") + ", " +
DataHelper.formatSize2(processedOut*1024) + "B " + _t("out") + "</b></center></div>"); DataHelper.formatSize2(processedOut*1024) + "B " + _t("out") + "</b></center></div>");
} }

View File

@ -26,7 +26,7 @@
<a name="bonus"> </a> <a name="bonus"> </a>
<h3 class="tabletitle"><%=intl._t("Manual Peer Controls")%></h3> <h3 class="tabletitle"><%=intl._t("Manual Peer Controls")%></h3>
<table class="configtable"> <table class="configtable">
<tr><td colspan="2"><%=intl._t("Router Hash")%>:<input type="text" size="55" name="peer" value="<%=peer%>" /></td></tr> <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><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="infohelp" colspan="2"><%=intl._t("Banning will prevent the participation of this peer in tunnels you create.")%></td></tr>
<tr> <tr>

View File

@ -39,7 +39,8 @@
<form action="" method="POST"> <form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" > <input type="hidden" name="nonce" value="<%=pageNonce%>" >
<td> <td>
<%=intl._t("Enter zip or su3 URL")%>:<input name="url" type="text" size="60" value="" /> <%=intl._t("Enter zip or su3 URL")%>:
<input name="url" type="text" size="60" value="" />
</td> </td>
<td class="optionsave"> <td class="optionsave">
<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from URL")%>" /> <input type="submit" name="action" class="download" value="<%=intl._t("Reseed from URL")%>" />