From 6bcdb7fd921b1cfbc28e3c2ea27e1f6bfa879cca Mon Sep 17 00:00:00 2001
From: z3d <z3d@mail.i2p>
Date: Fri, 24 Jul 2009 22:41:23 +0000
Subject: [PATCH] I2PSnark: Revert to 60 seconds refresh, replace red panel
 with dark blue, revert centering of torrents table centering; fix susimail
 centering issues (thanks postman!)

---
 .../src/org/klomp/snark/SnarkManager.java     |  2 +-
 .../org/klomp/snark/web/I2PSnarkServlet.java  |  4 +--
 apps/susimail/src/css.css                     | 27 ++++++++++++-------
 installer/resources/themes/console/snark.css  |  8 +++---
 4 files changed, 25 insertions(+), 16 deletions(-)

diff --git a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java
index 31eedd3306..ff507dc878 100644
--- a/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java
+++ b/apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java
@@ -544,7 +544,7 @@ public class SnarkManager implements Snark.CompleteListener {
         // basic validation of url
         if ((!announce.startsWith("http://")) ||
             (announce.indexOf(".i2p/") < 0)) // need to do better than this
-            return "Non-i2p tracker in " + info.getName() + ", removing it from our list of trackers!";
+            return "Non-i2p tracker in " + info.getName() + ", deleting it from our list of trackers!";
         List files = info.getFiles();
         if ( (files != null) && (files.size() > MAX_FILES_PER_TORRENT) ) {
             return "Too many files in " + info.getName() + " (" + files.size() + "), deleting it!";
diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
index 3bf7f5bf62..bb6cb21508 100644
--- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
+++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
@@ -80,7 +80,7 @@ public class I2PSnarkServlet extends HttpServlet {
         PrintWriter out = resp.getWriter();
         out.write(HEADER_BEGIN);
         // we want it to go to the base URI so we don't refresh with some funky action= value
-        out.write("<meta http-equiv=\"refresh\" content=\"300;" + req.getRequestURI() + peerString + "\">\n");
+        out.write("<meta http-equiv=\"refresh\" content=\"60;" + req.getRequestURI() + peerString + "\">\n");
         out.write(HEADER);
         out.write("</head><body>");
         out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=\"center\" class=\"snarkTitle\"><a href=\"" + req.getRequestURI() + peerString + "\" title=\"I2PSnark (Manual Page Refresh)\"><img src=\"/themes/console/images/i2psnark.png\" alt=\"I2PSnark Anonymous BitTorrent Client\" border=\"0\" class=\"snarklogo\"></a><br>");
@@ -734,7 +734,7 @@ public class I2PSnarkServlet extends HttpServlet {
         out.write("Total uploader limit: <input type=\"text\" name=\"upLimit\" value=\""
                   + _manager.util().getMaxUploaders() + "\" size=\"3\" maxlength=\"3\" /> peers<br />\n");
         out.write("Up bandwidth limit: <input type=\"text\" name=\"upBW\" value=\""
-                  + _manager.util().getMaxUpBW() + "\" size=\"3\" maxlength=\"3\" /> KBps <i>(Half <a href=\"http://127.0.0.1:7657/config.jsp\" target=\"blank\">available bandwidth</a> recommended.)</i><br />\n");
+                  + _manager.util().getMaxUpBW() + "\" size=\"3\" maxlength=\"3\" /> KBps <i>(Half <a href=\"/config.jsp\" target=\"blank\">available bandwidth</a> recommended.)</i><br />\n");
         
         out.write("Use open trackers also: <input type=\"checkbox\" name=\"useOpenTrackers\" value=\"true\" " 
                   + (useOpenTrackers ? "checked " : "") 
diff --git a/apps/susimail/src/css.css b/apps/susimail/src/css.css
index 25cef948b0..380fa79752 100644
--- a/apps/susimail/src/css.css
+++ b/apps/susimail/src/css.css
@@ -6,7 +6,7 @@ body {
 
 li {
 
-	color:black;
+	color:#001;
 	line-height:12pt;
 	font-size:10pt;
 	margin-left:5mm;
@@ -14,8 +14,7 @@ li {
 }
 
 p {
-
-	color:black;
+	color:#001;
 	line-height:12pt;
 	margin-left:5mm;
 	margin-right:5mm;
@@ -49,14 +48,15 @@ span.coloured {
 p.footer {
 	margin-left:10mm;
 	margin-right:10mm;
-    	font-size:8pt;
-    	line-height:10pt;
+  font-size:8pt;
+  line-height:10pt;
 }
 
 p.mailbody {
-	font-family:Courier-Fixed;
+  font: 10pt "Lucida Console", "DejaVu Sans Mono", Courier, mono;
 	margin-left:1cm;
 	margin-right:1cm;
+   text-align: left;
 }
 
 a {
@@ -70,7 +70,7 @@ a:hover {
 
 td {
 
-	color:black;
+	color:#001;
 	line-height:12pt;
 	margin-left:5mm;
 	margin-right:5mm;
@@ -92,7 +92,7 @@ table.noborder {
 }
 
 pre {
-	font-family:Courier-Fixed;
+  font: 9pt "Lucida Console", "DejaVu Sans Mono", Courier, mono;
 	margin-left:1cm;
 	margin-right:1cm;
 }
@@ -113,11 +113,20 @@ pre {
 }
 
 table {
-  text-align: center;
+  text-align: justify;
   width: 100%;
 }
 
 th {
   font-size: 10pt;
   font-weight: bold;
+}
+
+form {
+  line-height: 160%
+}
+
+.mailhead {
+  font-size: 9pt;
+  font-weight: bold;
 }
\ No newline at end of file
diff --git a/installer/resources/themes/console/snark.css b/installer/resources/themes/console/snark.css
index 6ffb3b3340..00c21fa4bf 100644
--- a/installer/resources/themes/console/snark.css
+++ b/installer/resources/themes/console/snark.css
@@ -114,7 +114,7 @@ th {
   border-top: 1px outset #001;
   border-bottom: 1px inset #001;  
   background: #f91 url('.../console/images/tabletitleorangealt.png') repeat-x;
-  text-align: center;
+  text-align: left;
 }
 
 .SnarkTorrents {
@@ -125,7 +125,7 @@ th {
 
 td {
 	padding: 5px;
-  text-align: center;
+  text-align: left;
 }
 .snarkTorrentEven {
 	background-color: #fb1;
@@ -315,10 +315,10 @@ div.configsection {
   -moz-border-radius: 4px;
   -khtml-border-radius: 4px;
   border-radius: 4px;
-  -moz-box-shadow: inset 0px 0px 1px 0px #002;
+  -moz-box-shadow: inset 0px 0px 1px 0px #99f;
   word-wrap: break-word;
   text-align: center;
-  background: #ffe url('../console/images/redtile.png');
+  background: #ffe url('../console/light/images/darkbluetile.png');
   font-weight: bold; /* red tile needs bold text! */
   opacity: 0.95;
 }
\ No newline at end of file
-- 
GitLab