");
+ out.write("");
List msgs = _manager.getMessages();
for (int i = msgs.size()-1; i >= 0; i--) {
String msg = (String)msgs.get(i);
@@ -493,7 +493,7 @@ public class I2PSnarkServlet extends HttpServlet {
if (remaining == 0)
out.write("");
+ + "\" title=\"View file\">");
out.write(filename);
if (remaining == 0)
out.write("");
@@ -568,7 +568,7 @@ public class I2PSnarkServlet extends HttpServlet {
out.write("");
out.write("");
out.write(" | \n\t");
- out.write("");
+ out.write(" | ");
String ch = peer.toString().substring(0, 4);
String client;
if ("AwMD".equals(ch))
@@ -587,7 +587,7 @@ public class I2PSnarkServlet extends HttpServlet {
client = "Robert";
else
client = "Unknown (" + ch + ')';
- out.write("" + client + " " + peer.toString().substring(5, 9) + "");
+ out.write("" + client + " " + peer.toString().substring(5, 9) + "");
if (showDebug)
out.write(" inactive " + (peer.getInactiveTime() / 1000) + "s");
out.write(" | \n\t");
@@ -596,12 +596,12 @@ public class I2PSnarkServlet extends HttpServlet {
out.write("");
float pct = (float) (100.0 * (float) peer.completed() / snark.meta.getPieces());
if (pct == 100.0)
- out.write("Seed");
+ out.write("Seed");
else {
String ps = String.valueOf(pct);
if (ps.length() > 5)
ps = ps.substring(0, 5);
- out.write("" + ps + "%");
+ out.write("" + ps + "%");
}
out.write(" | \n\t");
out.write("");
@@ -610,14 +610,14 @@ public class I2PSnarkServlet extends HttpServlet {
if (remaining > 0) {
if (peer.isInteresting() && !peer.isChoked()) {
out.write("");
- out.write("" + formatSize(peer.getDownloadRate()) + "ps");
+ out.write("" + formatSize(peer.getDownloadRate()) + "ps");
} else {
- out.write("");
else
out.write("Choked\">");
- out.write(formatSize(peer.getDownloadRate()) + "ps");
+ out.write(formatSize(peer.getDownloadRate()) + "ps");
}
}
out.write(" | \n\t");
@@ -625,14 +625,14 @@ public class I2PSnarkServlet extends HttpServlet {
if (pct != 100.0) {
if (peer.isInterested() && !peer.isChoking()) {
out.write("");
- out.write("" + formatSize(peer.getUploadRate()) + "ps");
+ out.write("" + formatSize(peer.getUploadRate()) + "ps");
} else {
- out.write("");
else
out.write("Choking\">");
- out.write(formatSize(peer.getUploadRate()) + "ps");
+ out.write(formatSize(peer.getUploadRate()) + "ps");
}
}
out.write("\n\t");
diff --git a/installer/resources/themes/console/snark.css b/installer/resources/themes/console/snark.css
index 13c233add..8b2a82673 100644
--- a/installer/resources/themes/console/snark.css
+++ b/installer/resources/themes/console/snark.css
@@ -1,335 +1,300 @@
/* Not yet complete. Subject to flux and change. dr|z3d - 07.25.09 */
body {
- background-color: #eef;
- color:#001;
- font-family:"Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif;
- font-size: 8pt;
+ background: #eef;
+ color: #001;
+ font: 8pt "Lucida Sans Unicode","Bitstream Vera Sans",Verdana,Tahoma,Helvetica,sans-serif;
}
.snarkTitle {
- font-size: 12pt;
- font-weight: bold;
- text-align: center;
+ font-size: 12pt;
+ font-weight: bold;
+ text-align: center;
}
-.snarkRefresh:link, .snarkRefresh:visited {
- text-decoration: none !important;
- text-transform: uppercase !important;
- padding: 0 16px;
- letter-spacing: 0.05em;
- font-weight: bold;
- font-size: 11pt;
- color: #005;
- text-shadow: 0px 0px 1px rgba(0, 0, 148, 0.9);
- }
-
- .snarkRefresh:hover{
- text-decoration: none !important;
- text-transform: uppercase !important;
- padding: 0 16px;
- letter-spacing: 0.05em;
- font-weight: bold;
- font-size: 11pt;
- color: #f60;
- border-bottom: 3px solid #f60;
- border-top: 3px solid #f60;
- text-shadow: 0px 0px 1px rgba(255, 128, 0, 0.9);
- }
-
-.snarkRefresh:active{
- text-decoration: none !important;
- text-transform: uppercase !important;
- padding: 0 16px;
- letter-spacing: 0.05em;
- font-weight: bold;
- font-size: 11pt;
- color: #f30;
- border-bottom: 3px solid #f30;
- border-top: 3px solid #f30;
- text-shadow: 0px 0px 1px rgba(255, 32, 0, 0.5);
- }
+.snarkRefresh:link,.snarkRefresh:visited {
+ text-decoration: none !important;
+ text-transform: uppercase !important;
+ padding: 0 16px;
+ letter-spacing: 0.05em;
+ font-weight: bold;
+ font-size: 11pt;
+ color: #005;
+ text-shadow: 0px 0px 1px rgba(0,0,148,0.9);
+}
+
+.snarkRefresh:hover {
+ text-decoration: none !important;
+ text-transform: uppercase !important;
+ padding: 0 16px;
+ letter-spacing: 0.05em;
+ font-weight: bold;
+ font-size: 11pt;
+ color: #f60;
+ border-bottom: 3px solid #f60;
+ border-top: 3px solid #f60;
+ text-shadow: 0px 0px 1px rgba(255,128,0,0.9);
+}
+
+.snarkRefresh:active {
+ text-decoration: none !important;
+ text-transform: uppercase !important;
+ padding: 0 16px;
+ letter-spacing: 0.05em;
+ font-weight: bold;
+ font-size: 11pt;
+ color: #f30;
+ border-bottom: 3px solid #f30;
+ border-top: 3px solid #f30;
+ text-shadow: 0px 0px 1px rgba(255,32,0,0.5);
+}
.snarkMessages {
- background-color: #f83;
- font-family: "Lucida Console", "DejaVu Sans Mono", Courier, mono !important;
- font-size: 9pt;
- font-weight: bold;
- text-align: left;
- margin: 0 0px 10px 0px;
- padding: 0;
- border-spacing: 0px;
- -moz-border-radius: 4px 0 0 0;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- border: 2px solid #930;
- text-align: left;
- overflow: auto;
- background: #f40 url('../console/images/orangetile.png');
- color: #531;
- height: 64px;
- width: auto;
+ font: bold 9pt "Lucida Console","DejaVu Sans Mono",Courier,mono !important;
+ text-align: left;
+ margin: 0 0px 10px 0px;
+ padding: 0;
+ border-spacing: 0px;
+ -moz-border-radius: 4px 0 0 0;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ border: 2px solid #930;
+ overflow: auto;
+ color: #531;
+ height: 64px;
+ width: auto;
+ background: #f83 url('../console/images/orangetile.png');
}
pre {
- font-family: "Lucida Console", "DejaVu Sans Mono", Courier, mono !important;
- width: 100%;
- font-size: 8pt;
- padding: 0;
- text-align: left !important;
- height: 8px;
+ width: 100%;
+ font: 8pt "Lucida Console","DejaVu Sans Mono",Courier,mono !important;
+ padding: 0;
+ text-align: left !important;
+ height: 8px;
}
table {
- margin: 0px 0px 10px 0px;
- border: 0px;
- padding: 0px;
- border-width: 0px;
- border-spacing: 0px;
- border-collapse: collapse;
+ margin: 0px 0px 10px 0px;
+ border: 0px;
+ padding: 0px;
+ border-spacing: 0px;
+ border-collapse: collapse;
}
th {
- padding: 5px;
- font-size: 8pt;
- border-top: 1px outset #001;
- border-bottom: 1px inset #001;
- background: #f60 url('/themes/console/images/tabletitleorange.png') repeat-x;
-/* text-align: right; */
- whitespace: nowrap;
+ padding: 4px;
+ font-size: 8pt;
+ border-top: 1px outset #001;
+ border-bottom: 1px inset #001;
+ background: #f60 url('/themes/console/images/tabletitleorange.png') repeat-x;
+ whitespace: nowrap;
}
.SnarkTorrents {
- margin: 0;
- border: 1px solid #001;
- background-color: #f9f;
+ margin: 0;
+ border: 1px solid #001;
+ background: #f9f;
}
td {
- padding: 5px;
-/* text-align: right;*/
+ padding: 4px;
}
+
.snarkTorrentEven {
- background-color: #fb1;
- font-size: 7pt;
+ background: #fb1;
+ font-size: 7pt;
}
+
.snarkTorrentOdd {
- background-color: #fa1;
- font-size: 7pt;
+ background: #fa1;
+ font-size: 7pt;
}
+
.snarkNewTorrent {
- font-size: 9pt;
+ font-size: 9pt;
}
+
.snarkAddInfo {
- font-size: 9pt;
- line-height: 130% !important;
+ font-size: 9pt;
+ line-height: 130% !important;
}
+
.snarkConfigTitle {
- font-size: 11pt;
- font-weight: bold;
- text-decoration: underline;
+ font-size: 11pt;
+ font-weight: bold;
+ text-decoration: underline;
+ text-transform: uppercase;
+ text-shadow: 0px 0px 2px rgba(172,172,192,0.9);
}
.snarkConfig {
- font-size: 10pt;
+ font-size: 10pt;
+ width: 100%;
}
.page {
- background-color: #fff;
- color:#310;
- min-width: 800px !important;
-/* max-width: 800px !important; */
- margin: 5px 0px;
- padding: 10px 10px 0px 10px;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- border: 1px solid #001;
- font-size: 9pt !important;
- line-height: 160% !important;
- -moz-box-shadow: inset 0px 0px 1px 0px #002;
- text-align: center;
- background: #ddf url('../console/light/images/lightbluetile.png');
- opacity: 1.0;
+ background: #fff;
+ color: #310;
+ min-width: 800px !important;
+ margin: 5px 0 0 0;
+ padding: 10px 10px 0px 10px;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ border: 1px solid #001;
+ font-size: 9pt !important;
+ line-height: 160% !important;
+ -moz-box-shadow: inset 0px 0px 1px 0px #002;
+ text-align: center;
+ opacity: 1.0;
}
form {
- line-height: 250%
+ line-height: 250%;
}
-p {
- line-height: 150%
-}
-
-a:link {
- padding 5px;
+p {
+ line-height: 150%;
}
hr {
- color: #003;
- background: #003;
- height: 1px;
- border: 0px solid #003;
- width: 100%;
- margin: 10px 0 7px 0;
- text-align: center;
+ color: #003;
+ background: #003;
+ height: 1px;
+ border: 0px solid #003;
+ width: 100%;
+ margin: 10px 0 7px 0;
+ text-align: center;
}
-a:link{
- color: #930;
- text-decoration: none;
- font-weight: bold;
- word-wrap: break-word;
+a:link {
+ color: #930;
+ text-decoration: none;
+ font-weight: bold;
+ word-wrap: break-word;
}
-a:visited{
- color: #606;
- text-decoration: none;
- font-weight: bold;
+a:visited {
+ color: #606;
+ text-decoration: none;
+ font-weight: bold;
}
-a:hover{
- color: #900;
- font-weight: bold;
+a:hover {
+ color: #900;
+ font-weight: bold;
}
input {
-/* font-family: "Lucida Console", "DejaVu Sans Mono", Courier, mono !important;*/
- font-size: 9pt;
- font-weight: bold;
- text-align: left;
- padding: 2px;
-}
+ font-size: 9pt;
+ font-weight: bold;
+ text-align: left;
+ padding: 2px;
+}
select {
- font-family:"Lucida Sans Unicode", "Bitstream Vera Sans", Verdana, Tahoma, Helvetica, sans-serif;
- background-color: #ffe;
- color: #310;
- font-size: 9pt;
+ background: #ffe;
+ color: #310;
+ font: 9pt "Lucida Sans Unicode","Bitstream Vera Sans",Verdana,Tahoma,Helvetica,sans-serif;
}
img {
- border: none;
- margin: 5px 5px 0px 5px;
- opacity: 1.0;
- line-height: 100%
+ border: none;
+ margin: 5px 5px 0px 5px;
+ opacity: 1.0;
+ line-height: 100%;
}
-img:hover{
- border: none;
- margin: 5px 5px 0px 5px;
- opacity: 0.5;
- line-height: 100%
+img: hover {
+ border: none;
+ margin: 5px 5px 0px 5px;
+ opacity: 0.5;
+ line-height: 100%;
}
-
-div.section {
- margin: 0 0 10px 0;
- padding: 10px;
- background: #ffe;
- border: 1px solid #001;
- text-align: center;
- color: #001;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- -moz-box-shadow: inset 0px 0px 1px 0px #002;
- word-wrap: break-word;
- text-align: center;
- background: #ffe url('../console/light/images/tabletile.png');
- opacity: 1.0;
-}
-
-div.mainsection {
- margin: 0 0 10px 0;
- padding: 10px;
- background: #ffe;
- border: 1px solid #001;
- text-align: center;
- color: #001;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- -moz-box-shadow: inset 0px 0px 1px 0px #002;
- word-wrap: break-word;
- text-align: center;
- background: #ffe url('../console/light/images/tabletile.png');
- opacity: 1.0;
+div.section,div.mainsection {
+ margin: 0 0 10px 0;
+ padding: 10px;
+ border: 1px solid #001;
+ color: #001;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ -moz-box-shadow: inset 0px 0px 1px 0px #002;
+ word-wrap: break-word;
+ text-align: center;
+ background: #ffe url('../console/light/images/tabletile.png');
+ opacity: 1.0;
}
div.newtorrentsection {
- margin: 0 0 10px 0;
- padding: 10px;
- background: #ffe;
- border: 1px solid #001;
- text-align: center;
- color: #001;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- -moz-box-shadow: inset 0px 0px 1px 0px #002;
- word-wrap: break-word;
- text-align: center;
- background: #ffe url('../console/images/yellowtile.png');
- opacity: 1.0;
+ margin: 0 0 10px 0;
+ padding: 0 10px 10px 10px;
+ border: 1px solid #001;
+ text-align: center;
+ color: #001;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ -moz-box-shadow: inset 0px 0px 1px 0px #002;
+ word-wrap: break-word;
+ background: #bb4 url('../console/images/yellowtile.png');
+ opacity: 1.0;
}
div.addtorrentsection {
- margin: 0 0 10px 0;
- padding: 10px;
- background: #ffe;
- border: 1px solid #001;
- text-align: center;
- color: #001;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- -moz-box-shadow: inset 0px 0px 1px 0px #002;
- word-wrap: break-word;
- text-align: center;
- background: #ffe url('../console/images/greentile.png');
- opacity: 1.0;
+ margin: 0 0 10px 0;
+ padding: 0 10px 10px 10px;
+ border: 1px solid #001;
+ text-align: center;
+ color: #001;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ -moz-box-shadow: inset 0px 0px 1px 0px #002;
+ word-wrap: break-word;
+ background: #7f7 url('../console/images/greentile.png');
+ opacity: 1.0;
}
div.configsection {
- margin: 0;
- padding: 10px;
- background: #ffe;
- border: 1px solid #001;
- color: #ffb;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- -moz-box-shadow: inset 0px 0px 0px 1px #900;
- word-wrap: break-word;
- text-align: center;
- background: #ffe url('../console/light/images/darkbluetile.png');
- font-weight: bold; /* red tile needs bold text! */
+ margin: 0;
+ padding: 0 10px 10px 10px;
+ border: 1px solid #001;
+ color: #ffb;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ -moz-box-shadow: inset 0px 0px 0px 1px #900;
+ word-wrap: break-word;
+ text-align: center;
+ background: #700 url('../console/light/images/darkbluetile.png');
+ font-weight: bold;/* red tile needs bold text! */
}
-div.configsection a{
- color: #f90;
+div.configsection a {
+ color: #f90;
}
-div.configsection a:hover{
- color: #f60;
- text-decoration: underline;
+div.configsection a: hover {
+ color: #f60;
+ text-decoration: underline;
}
.snarknavbar {
- margin: 0 0 10px 0 !important;
- padding: 10px;
- border: 1px solid #001;
- -moz-border-radius: 4px;
- -khtml-border-radius: 4px;
- border-radius: 4px;
- background: #eef;
- -moz-box-shadow: inset 0px 0px 1px 0px #002;
- background: #ddf url('../console/light/images/tabletile.png');
- text-transform: uppercase !important;
- letter-spacing: 0.05em;
- font-weight: bold;
- font-size: 11pt;
- color: #001;
- text-shadow: 0px 0px 1px rgba(0, 0, 148, 0.9);
-}
+ margin: 0 0 10px 0 !important;
+ padding: 10px;
+ border: 1px solid #001;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
+ -moz-box-shadow: inset 0px 0px 1px 0px #002;
+ background: #ddf url('../console/light/images/tabletile.png');
+ text-transform: uppercase !important;
+ letter-spacing: 0.05em;
+ font-weight: bold;
+ font-size: 11pt;
+ color: #001;
+ text-shadow: 0px 0px 1px rgba(0,0,148,0.9);
+ }
|
|