forked from I2P_Developers/i2p.i2p
I2PSnark: Invert show/hide peer icon functionality, tooltip change to "toggle peers"; fix alignment of "No torrents loaded" message with new css class; Replace brackets on Totals with ».
This commit is contained in:
@ -243,10 +243,10 @@ public class I2PSnarkServlet extends Default {
|
|||||||
out.write(req.getRequestURI());
|
out.write(req.getRequestURI());
|
||||||
if (peerParam != null) {
|
if (peerParam != null) {
|
||||||
out.write("\">");
|
out.write("\">");
|
||||||
out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/hidepeers.png\" title=\"Hide Peers\" alt=\"Hide Peers\">"));
|
out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/showpeers.png\" title=\"Toggle Peer Visibility\" alt=\"Hide Peers\">"));
|
||||||
} else {
|
} else {
|
||||||
out.write("?p=1\">");
|
out.write("?p=1\">");
|
||||||
out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/showpeers.png\" title=\"Show Peers\" alt=\"Show Peers\">"));
|
out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/hidepeers.png\" title=\"Toggle Peer Visibility\" alt=\"Show Peers\">"));
|
||||||
}
|
}
|
||||||
out.write("</a><br>\n");
|
out.write("</a><br>\n");
|
||||||
}
|
}
|
||||||
@ -291,8 +291,8 @@ public class I2PSnarkServlet extends Default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (snarks.isEmpty()) {
|
if (snarks.isEmpty()) {
|
||||||
out.write("<tr class=\"snarkTorrentEven\">" +
|
out.write("<tr class=\"snarkTorrentNoneLoaded\">" +
|
||||||
"<td class=\"snarkTorrentEven\" align=\"center\"" +
|
"<td class=\"snarkTorrentNoneLoaded\"" +
|
||||||
" colspan=\"8\"><i>");
|
" colspan=\"8\"><i>");
|
||||||
out.write(_("No torrents loaded."));
|
out.write(_("No torrents loaded."));
|
||||||
out.write("</i></td></tr>\n");
|
out.write("</i></td></tr>\n");
|
||||||
@ -300,12 +300,12 @@ public class I2PSnarkServlet extends Default {
|
|||||||
out.write("<tfoot><tr>\n" +
|
out.write("<tfoot><tr>\n" +
|
||||||
" <th align=\"left\" colspan=\"2\">");
|
" <th align=\"left\" colspan=\"2\">");
|
||||||
out.write(_("Totals"));
|
out.write(_("Totals"));
|
||||||
out.write(" (");
|
out.write(" » ");
|
||||||
out.write(ngettext("1 torrent", "{0} torrents", snarks.size()));
|
out.write(ngettext("1 torrent", "{0} torrents", snarks.size()));
|
||||||
out.write(", ");
|
out.write(", ");
|
||||||
out.write(DataHelper.formatSize2(stats[5]) + "B, ");
|
out.write(DataHelper.formatSize2(stats[5]) + "B, ");
|
||||||
out.write(ngettext("1 connected peer", "{0} connected peers", (int) stats[4]));
|
out.write(ngettext("1 connected peer", "{0} connected peers", (int) stats[4]));
|
||||||
out.write(")</th>\n" +
|
out.write("</th>\n" +
|
||||||
" <th> </th>\n" +
|
" <th> </th>\n" +
|
||||||
" <th align=\"right\">" + formatSize(stats[0]) + "</th>\n" +
|
" <th align=\"right\">" + formatSize(stats[0]) + "</th>\n" +
|
||||||
" <th align=\"right\">" + formatSize(stats[1]) + "</th>\n" +
|
" <th align=\"right\">" + formatSize(stats[1]) + "</th>\n" +
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/* Guantanamo Commemorative Edition. */
|
/* Guantanamo Commemorative Edition. */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #333 url('/themes/console/snark/images/graytile.png');
|
background: #101 url('/themes/console/snark/images/graytile.png');
|
||||||
color: #001;
|
color: #001;
|
||||||
font: 8pt "Lucida Sans Unicode","Bitstream Vera Sans",Verdana,Tahoma,Helvetica,sans-serif;
|
font: 8pt "Lucida Sans Unicode","Bitstream Vera Sans",Verdana,Tahoma,Helvetica,sans-serif;
|
||||||
}
|
}
|
||||||
@ -167,6 +167,14 @@ td:first-child {
|
|||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.snarkTorrentNoneLoaded {
|
||||||
|
background: #323;
|
||||||
|
font-size: 8.5pt;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center !important;
|
||||||
|
color: #bbb !important;
|
||||||
|
}
|
||||||
|
|
||||||
.snarkTorrentStatus {
|
.snarkTorrentStatus {
|
||||||
padding: 1px 0 2px;
|
padding: 1px 0 2px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user