forked from I2P_Developers/i2p.i2p
I2PSnark: Fix syntax errors; tweak css.
This commit is contained in:
@@ -185,6 +185,7 @@ public class I2PSnarkServlet extends Default {
|
||||
out.write("<div class=\"snarknavbar\"><a href=\"/i2psnark/\" title=\"");
|
||||
out.write(_("Torrents"));
|
||||
out.write("\" class=\"snarkRefresh\">");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/arrow_refresh.png\"> ");
|
||||
out.write(_("I2PSnark"));
|
||||
out.write("</a>");
|
||||
} else {
|
||||
@@ -300,7 +301,7 @@ public class I2PSnarkServlet extends Default {
|
||||
"\" title=\"");
|
||||
out.write(_("Stop all torrents and the I2P tunnel"));
|
||||
out.write("\">");
|
||||
out.write("<img src=\"/themes/snark/ubergine/images/stop_all.png\" title=\"");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/stop_all.png\" title=\"");
|
||||
out.write(_("Stop All Torrents"));
|
||||
out.write("\" alt=\"");
|
||||
out.write(_("Stop All"));
|
||||
@@ -311,7 +312,7 @@ public class I2PSnarkServlet extends Default {
|
||||
"\" title=\"");
|
||||
out.write(_("Start all torrents and the I2P tunnel"));
|
||||
out.write("\">");
|
||||
out.write("<img src=\"/themes/snark/ubergine/images/start_all.png\" title=\"");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/start_all.png\" title=\"");
|
||||
out.write(_("Start All Torrents"));
|
||||
out.write("\" alt=\"Start All\">");
|
||||
out.write("</a>");
|
||||
@@ -810,11 +811,11 @@ public class I2PSnarkServlet extends Default {
|
||||
out.write("</td>\n\t");
|
||||
out.write("<td align=\"right\" class=\"snarkTorrentUploaded " + rowClass
|
||||
+ "\">" + formatSize(uploaded) + "</td>\n\t");
|
||||
out.write("<td align=\"right\" class=\"snarkTorrentRate\">");
|
||||
out.write("<td align=\"right\" class=\"snarkTorrentRateDown\">");
|
||||
if(isRunning && remaining > 0)
|
||||
out.write(formatSize(downBps) + "ps");
|
||||
out.write("</td>\n\t");
|
||||
out.write("<td align=\"right\" class=\"snarkTorrentRate\">");
|
||||
out.write("<td align=\"right\" class=\"snarkTorrentRateUp\">");
|
||||
if(isRunning)
|
||||
out.write(formatSize(upBps) + "ps");
|
||||
out.write("</td>\n\t");
|
||||
@@ -827,7 +828,7 @@ public class I2PSnarkServlet extends Default {
|
||||
+ "\" title=\"");
|
||||
out.write(_("Stop the torrent"));
|
||||
out.write("\">");
|
||||
out.write("<img src=\"/themes/snark/ubergine/images/stop.png\" title=\"");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/stop.png\" title=\"");
|
||||
out.write(_("Stop Torrent"));
|
||||
out.write("\" alt=\"");
|
||||
out.write(_("Stop"));
|
||||
@@ -839,7 +840,7 @@ public class I2PSnarkServlet extends Default {
|
||||
+ "\" title=\"");
|
||||
out.write(_("Start the torrent"));
|
||||
out.write("\">");
|
||||
out.write("<img src=\"/themes/snark/ubergine/images/start.png\" title=\"");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/start.png\" title=\"");
|
||||
out.write(_("Start Torrent"));
|
||||
out.write("\" alt=\"");
|
||||
out.write(_("Start"));
|
||||
@@ -855,7 +856,7 @@ public class I2PSnarkServlet extends Default {
|
||||
// Then the remaining single quite must be escaped
|
||||
out.write(_("Are you sure you want to delete the file \\''{0}.torrent\\'' (downloaded data will not be deleted) ?", fullFilename));
|
||||
out.write("')) { return false; }\">");
|
||||
out.write("<img src=\"/themes/snark/ubergine/images/remove.png\" title=\"");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/remove.png\" title=\"");
|
||||
out.write(_("Remove Torrent"));
|
||||
out.write("\" alt=\"");
|
||||
out.write(_("Remove"));
|
||||
@@ -870,7 +871,7 @@ public class I2PSnarkServlet extends Default {
|
||||
// Then the remaining single quite must be escaped
|
||||
out.write(_("Are you sure you want to delete the torrent \\''{0}\\'' and all downloaded data?", fullFilename));
|
||||
out.write("')) { return false; }\">");
|
||||
out.write("<img src=\"/themes/snark/ubergine/images/delete.png\" title=\"");
|
||||
out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/delete.png\" title=\"");
|
||||
out.write(_("Delete Torrent + Data"));
|
||||
out.write("\" alt=\"");
|
||||
out.write(_("Delete"));
|
||||
@@ -1000,14 +1001,17 @@ public class I2PSnarkServlet extends Default {
|
||||
out.write(_("Add Torrent"));
|
||||
out.write("</span><hr>\n<table border=\"0\"><tr><td>");
|
||||
out.write(_("From URL"));
|
||||
out.write(":<td><input type=\"text\" name=\"newURL\" size=\"85\" value=\"" + newURL + "\" > \n");
|
||||
out.write(":<td><input type=\"text\" name=\"newURL\" size=\"85\" value=\"" + newURL + "\"");
|
||||
out.write("title=\"");
|
||||
out.write(_("Torrent file must originate from an I2P-based tracker"));
|
||||
out.write("\"> \n");
|
||||
// not supporting from file at the moment, since the file name passed isn't always absolute (so it may not resolve)
|
||||
//out.write("From file: <input type=\"file\" name=\"newFile\" size=\"50\" value=\"" + newFile + "\" /><br>");
|
||||
out.write("<input type=\"submit\" value=\"");
|
||||
out.write(_("Add torrent"));
|
||||
out.write("\" name=\"foo\" ><br>\n");
|
||||
out.write("<tr><td> <td><span class=\"snarkAddInfo\">");
|
||||
out.write(_("You can also copy .torrent files to: {0}.", "<code>" + _manager.getDataDir().getAbsolutePath ())) + "</code>";
|
||||
out.write(_("You can also copy .torrent files to: {0}.", "<code>" + _manager.getDataDir().getAbsolutePath () + "</code>"));
|
||||
out.write("\n");
|
||||
out.write(_("Removing a .torrent will cause it to stop."));
|
||||
out.write("<br></span></table>\n");
|
||||
@@ -1346,7 +1350,7 @@ public class I2PSnarkServlet extends Default {
|
||||
title = _("Torrent") + ": " + title;
|
||||
buf.append(title);
|
||||
buf.append("</TITLE>").append(HEADER).append("<link rel=\"shortcut icon\" href=\"/themes/snark/ubergine/favicon.ico\"></HEAD><BODY>\n<center><div class=\"snarknavbar\"> <a href=\"/i2psnark/\" title=\"Torrents\"");
|
||||
buf.append(" class=\"snarkRefresh\">I2PSnark</a>").append("</div>");
|
||||
buf.append(" class=\"snarkRefresh\"><img border=\"0\" src=\"/themes/snark/ubergine/images/arrow_refresh.png\"> I2PSnark</a>").append("</div>");
|
||||
|
||||
buf.append("<div class=\"page\"><div class=\"mainsection\">" +
|
||||
"<TABLE BORDER=0 class=\"snarkTorrents\" cellpadding=\"5px 10px\">" +
|
||||
@@ -1415,7 +1419,7 @@ public class I2PSnarkServlet extends Default {
|
||||
String plc = item.toString().toLowerCase();
|
||||
if (plc.endsWith(".jpg") || plc.endsWith(".jpeg") || plc.endsWith(".png") ||
|
||||
plc.endsWith(".gif") || plc.endsWith(".ico")) {
|
||||
buf.append("<img alt=\"\" border=\"0\" class=\"thumb\" src=\"")
|
||||
buf.append("<img border=\"0\" alt=\"\" border=\"0\" class=\"thumb\" src=\"")
|
||||
.append(path).append("\"></a> ");
|
||||
} else {
|
||||
buf.append(toImg(icon));
|
||||
@@ -1512,7 +1516,7 @@ buf.append("</div></div></center></BODY></HTML>\n");
|
||||
|
||||
/** @since 0.7.14 */
|
||||
private static String toImg(String icon) {
|
||||
return "<img alt=\"\" height=\"16\" width=\"16\" src=\"/i2psnark/_icons/" + icon + ".png\"> ";
|
||||
return "<img border=\"0\" alt=\"\" height=\"16\" width=\"16\" src=\"/i2psnark/_icons/" + icon + ".png\"> ";
|
||||
}
|
||||
|
||||
|
||||
|
@@ -17,7 +17,7 @@ body {
|
||||
text-decoration: none !important;
|
||||
text-transform: uppercase !important;
|
||||
padding: 4px 16px 5px !important;
|
||||
margin: -5px -7px -5px 0 !important;
|
||||
margin: -5px -8px -5px 0 !important;
|
||||
letter-spacing: 0.05em;
|
||||
font-weight: bold;
|
||||
font-size: 11pt;
|
||||
@@ -43,13 +43,13 @@ body {
|
||||
font-size: 11pt;
|
||||
color: #f50;
|
||||
background: #310 url('/themes/snark/ubergine/images/snarknav_on.png') repeat-x scroll center center;
|
||||
background: url('/themes/snark/ubergine/images/snarknav_lowlight.png') repeat-x scroll center center;
|
||||
-moz-border-radius: 0;
|
||||
-khtml-border-radius: 0;
|
||||
border-radius: 0;
|
||||
-moz-box-shadow: inset 0 0 1px 0 #f90;
|
||||
-khtml-box-shadow: inset 0 0 1px 0 #f90;
|
||||
box-shadow: 0 0 1px #f90;
|
||||
background: #310 url('/themes/snark/ubergine/images/snarknav_lowlight.png') repeat-x scroll center center;
|
||||
-moz-border-radius: 0;
|
||||
-khtml-border-radius: 0;
|
||||
border-radius: 0;
|
||||
-moz-box-shadow: inset 0 0 1px 0 #f90;
|
||||
-khtml-box-shadow: inset 0 0 1px 0 #f90;
|
||||
box-shadow: 0 0 1px #f90;
|
||||
}
|
||||
|
||||
.snarkRefresh:active {
|
||||
@@ -64,21 +64,21 @@ body {
|
||||
}
|
||||
|
||||
.snarkRefresh:last-child {
|
||||
-moz-border-radius: 0 3px 3px 0px;
|
||||
-khtml-border-radius: 0 3px 0 0;
|
||||
border-radius: 0;
|
||||
-moz-box-shadow: inset 0 0 1px 0 #f90;
|
||||
-khtml-box-shadow: inset 0 0 1px 0 #f90;
|
||||
box-shadow: 0 0 1px 0 #f90;
|
||||
-moz-border-radius: 0 3px 3px 0px;
|
||||
-khtml-border-radius: 0 3px 3px 0;
|
||||
border-radius: 0 3px 3px 0;
|
||||
-moz-box-shadow: inset 0 0 1px 0 #f90;
|
||||
-khtml-box-shadow: inset 0 0 1px 0 #f90;
|
||||
box-shadow: 0 0 1px 0 #f90;
|
||||
}
|
||||
|
||||
.snarkRefresh:first-child {
|
||||
-moz-border-radius: 3px 0 0 3px;
|
||||
-khtml-border-radius: 3px;
|
||||
border-radius: 0;
|
||||
-moz-box-shadow: inset 0 0 1px 0 #f90;
|
||||
-khtml-box-shadow: inset 0 0 1px 0 #f90;
|
||||
box-shadow: 0 0 1px 0 #f90;
|
||||
-moz-border-radius: 3px 0 0 3px;
|
||||
-khtml-border-radius: 3px 0 0 3px;
|
||||
border-radius: 3px 0 0 3px;
|
||||
-moz-box-shadow: inset 0 0 1px 0 #f90;
|
||||
-khtml-box-shadow: inset 0 0 1px 0 #f90;
|
||||
box-shadow: 0 0 1px 0 #f90;
|
||||
}
|
||||
|
||||
.snarkMessages {
|
||||
@@ -116,7 +116,7 @@ pre {
|
||||
padding: 0;
|
||||
text-align: left !important;
|
||||
height: 8px;
|
||||
color: #13f;
|
||||
color: #13f;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
@@ -126,18 +126,18 @@ table {
|
||||
padding: 0px;
|
||||
border-spacing: 0px;
|
||||
border-collapse: collapse;
|
||||
color: #323;
|
||||
width: 100%;
|
||||
opacity: 1 !important;
|
||||
color: #323;
|
||||
width: 100%;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
tr {
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
thead, tfoot {
|
||||
background: url("/themes/snark/ubergine/images/snark_thead.png") repeat-x scroll 0 0 #101;
|
||||
text-shadow:0 2px 5px #333333;
|
||||
background: url("/themes/snark/ubergine/images/snark_thead.png") repeat-x scroll 0 0 #101;
|
||||
text-shadow:0 2px 5px #333333;
|
||||
}
|
||||
|
||||
thead a, tfoot a {
|
||||
@@ -153,7 +153,7 @@ th {
|
||||
font-size: 9pt;
|
||||
border-top: 1px outset #001;
|
||||
border-bottom: 1px inset #101;
|
||||
color: #ddd;
|
||||
color: #ddd;
|
||||
whitespace: nowrap;
|
||||
font-variant: small-caps !important;
|
||||
letter-spacing: 0.05em;
|
||||
@@ -161,8 +161,7 @@ th {
|
||||
|
||||
th:first-child {
|
||||
text-align: left !important;
|
||||
padding-left: 2px;
|
||||
max-width: 120px;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
tfoot td:first-child {
|
||||
@@ -266,7 +265,7 @@ td:first-child {
|
||||
margin-right: 0px !important;
|
||||
}
|
||||
|
||||
.snarkTorrentRate, .snarkTorrentDownloaded, .snarkTorrentUploaded {
|
||||
.snarkTorrentRateUp, .snarkTorrentRateDown, .snarkTorrentDownloaded, .snarkTorrentUploaded {
|
||||
font-size: 8pt;
|
||||
font-weight: bold;
|
||||
padding: 0 3px;
|
||||
@@ -280,10 +279,13 @@ td:first-child {
|
||||
color: #b9b !important;
|
||||
}
|
||||
|
||||
.snarkTorrentRate {
|
||||
color: #d9d !important;
|
||||
.snarkTorrentRateUp {
|
||||
color: #b9b !important;
|
||||
}
|
||||
|
||||
.snarkTorrentRateDown {
|
||||
color: #76a !important;
|
||||
}
|
||||
|
||||
.snarkTorrentOdd {
|
||||
background: #656;
|
||||
@@ -413,13 +415,14 @@ input {
|
||||
font-size: 9pt;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
padding: 2px 4px;
|
||||
padding: 3px 4px !important;
|
||||
-moz-border-radius: 4px;
|
||||
-khtml-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
border: 1px inset #000;
|
||||
background: #212 url('/themes/snark/ubergine/images/graytile.png');
|
||||
color: #f60;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
input.r {
|
||||
@@ -432,6 +435,7 @@ input[type=submit] {
|
||||
color: #000;
|
||||
background: #989;
|
||||
border: 1px inset #bbb;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
input[type=submit]:hover {
|
||||
@@ -468,7 +472,7 @@ select {
|
||||
|
||||
select:hover, textarea:hover {
|
||||
background: #f60 !important;
|
||||
color: #fff;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
textarea {
|
||||
@@ -610,8 +614,8 @@ code {
|
||||
padding: 11px 10px 12px;
|
||||
border: 1px solid #101;
|
||||
-moz-border-radius: 0 0 8px 8px;
|
||||
-khtml-border-radius: 0 0 4px 4px;
|
||||
border-radius: 0 0 4px 4px;
|
||||
-khtml-border-radius: 0 0 8px 8px;
|
||||
border-radius: 0 0 8px 8px;
|
||||
-moz-box-shadow: inset 0px 0px 1px 0px #002;
|
||||
-khtml-box-shadow: inset 0px 0px 1px 0px #002;
|
||||
box-shadow: inset 0px 0px 1px 0px #002;
|
||||
|
Reference in New Issue
Block a user