Changeset d56aae8
- Timestamp:
- Aug 19, 2009 6:28:44 PM (11 years ago)
- Branches:
- master
- Children:
- 7a88f59
- Parents:
- a309a14
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
ra309a14 rd56aae8 85 85 out.write(HEADER); 86 86 out.write("</head><body>"); 87 out.write("<center><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></table>");88 out.write("<div class=\"snarknavbar\"><a href=\" http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\" target=\"_blank\">Forum</a>\n");87 out.write("<center><div class=\"page\">"); 88 out.write("<div class=\"snarknavbar\"><a href=\"" + req.getRequestURI() + peerString + "\" title=\"Refresh page\" class=\"snarkRefresh\">I2PSnark</a> <a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\" target=\"_blank\">Forum</a>\n"); 89 89 Map trackers = _manager.getTrackers(); 90 90 for (Iterator iter = trackers.entrySet().iterator(); iter.hasNext(); ) { … … 117 117 } 118 118 out.write(TABLE_HEADER2); 119 out.write("<th align=\" left\">");119 out.write("<th align=\"center\">"); 120 120 if (_manager.util().connected()) 121 121 out.write("<a href=\"" + uri + "?action=StopAll&nonce=" + _nonce + 122 "\" title=\"Stop all torrents and the i2ptunnel\">Stop All</a>");122 "\" title=\"Stop all torrents and the I2P tunnel\">Stop All</a>"); 123 123 else if (snarks.size() > 0) 124 124 out.write("<a href=\"" + uri + "?action=StartAll&nonce=" + _nonce + 125 "\" title=\"Start all torrents and the i2ptunnel\">Start All</a>");125 "\" title=\"Start all torrents and the I2P tunnel\">Start All</a>"); 126 126 else 127 127 out.write(" "); … … 488 488 String rowClass = (row % 2 == 0 ? "snarkTorrentEven" : "snarkTorrentOdd"); 489 489 out.write("<tr class=\"" + rowClass + "\">"); 490 out.write("<td align=\" left\" class=\"snarkTorrentStatus " + rowClass + "\">");490 out.write("<td align=\"center\" class=\"snarkTorrentStatus " + rowClass + "\">"); 491 491 out.write(statusString + "</td>\n\t"); 492 492 out.write("<td align=\"left\" class=\"snarkTorrentName " + rowClass + "\">"); … … 522 522 out.write("</td>\n\t"); 523 523 524 out.write("<td align=\" right\" class=\"snarkTorrentETA " + rowClass + "\">");524 out.write("<td align=\"center\" class=\"snarkTorrentETA " + rowClass + "\">"); 525 525 if(isRunning && remainingSeconds > 0) 526 526 out.write(DataHelper.formatDuration(remainingSeconds*1000)); // (eta 6h) … … 542 542 out.write(formatSize(upBps) + "ps"); 543 543 out.write("</td>\n\t"); 544 out.write("<td align=\" left\" class=\"snarkTorrentAction " + rowClass + "\">");544 out.write("<td align=\"center\" class=\"snarkTorrentAction " + rowClass + "\">"); 545 545 String parameters = "&nonce=" + _nonce + "&torrent=" + Base64.encode(snark.meta.getInfoHash()); 546 546 if (showPeers) … … 567 567 continue; 568 568 out.write("<tr class=\"" + rowClass + "\">"); 569 out.write("<td class=\"snarkTorrentStatus " + rowClass + "\">");569 out.write("<td align=\"center\" class=\"snarkTorrentStatus " + rowClass + "\">"); 570 570 out.write("</td>\n\t"); 571 out.write("<td align=\" right\" class=\"snarkTorrentStatus " + rowClass + "\">");571 out.write("<td align=\"center\" class=\"snarkTorrentStatus " + rowClass + "\">"); 572 572 String ch = peer.toString().substring(0, 4); 573 573 String client; … … 588 588 else 589 589 client = "Unknown (" + ch + ')'; 590 out.write("<font size=-1>" + client + "</font> <tt>" + peer.toString().substring(5, 9) + "</tt>");590 out.write("<font size=-1>" + client + "</font> " + peer.toString().substring(5, 9) + ""); 591 591 if (showDebug) 592 592 out.write(" inactive " + (peer.getInactiveTime() / 1000) + "s"); … … 791 791 private static final String TABLE_HEADER = "<table border=\"0\" class=\"snarkTorrents\" width=\"100%\" cellpadding=\"0 10px\">\n" + 792 792 "<thead>\n" + 793 "<tr><th align=\" left\">Status \n";793 "<tr><th align=\"center\">Status \n"; 794 794 795 795 private static final String TABLE_HEADER2 = "</th>\n" + 796 796 " <th align=\"left\">Torrent</th>\n" + 797 " <th align=\" right\">ETA</th>\n" +797 " <th align=\"center\">ETA</th>\n" + 798 798 " <th align=\"right\">Downloaded</th>\n" + 799 799 " <th align=\"right\">Uploaded</th>\n" + -
installer/resources/themes/console/snark.css
ra309a14 rd56aae8 48 48 border-bottom: 3px solid #f30; 49 49 border-top: 3px solid #f30; 50 text-shadow: 0px 0px 1px rgba(255, 163, 0, 0.9);50 text-shadow: 0px 0px 1px rgba(255, 32, 0, 0.5); 51 51 } 52 52 … … 96 96 border-bottom: 1px inset #001; 97 97 background: #f60 url('/themes/console/images/tabletitleorange.png') repeat-x; 98 text-align: right; 98 /* text-align: right; */ 99 99 whitespace: nowrap; 100 100 } … … 108 108 td { 109 109 padding: 5px; 110 text-align: right; 110 /* text-align: right;*/ 111 111 } 112 112 .snarkTorrentEven { … … 140 140 min-width: 800px !important; 141 141 /* max-width: 800px !important; */ 142 margin: 20px;143 padding: 10px 20px 5px 20px;142 margin: 10px; 143 padding: 10px 10px 5px 10px; 144 144 -moz-border-radius: 4px; 145 145 -khtml-border-radius: 4px; … … 225 225 226 226 div.section { 227 margin: 0 0 20px 0;227 margin: 0 0 10px 0; 228 228 padding: 10px; 229 229 background: #ffe; … … 242 242 243 243 div.mainsection { 244 margin: 0 0 20px 0;244 margin: 0 0 10px 0; 245 245 padding: 10px; 246 246 background: #ffe; … … 259 259 260 260 div.newtorrentsection { 261 margin: 0 0 20px 0;261 margin: 0 0 10px 0; 262 262 padding: 10px; 263 263 background: #ffe; … … 276 276 277 277 div.addtorrentsection { 278 margin: 0 0 20px 0;278 margin: 0 0 10px 0; 279 279 padding: 10px; 280 280 background: #ffe; … … 293 293 294 294 div.configsection { 295 margin: 0 0 20px 0;295 margin: 0 0 10px 0; 296 296 padding: 10px; 297 297 background: #ffe; … … 318 318 319 319 .snarknavbar { 320 margin: 5px 0 20px 0 !important;320 margin: 0 0 10px 0 !important; 321 321 padding: 10px; 322 322 border: 1px solid #001; … … 327 327 -moz-box-shadow: inset 0px 0px 1px 0px #002; 328 328 background: #ddf url('../console/light/images/tabletile.png'); 329 } 329 text-transform: uppercase !important; 330 letter-spacing: 0.05em; 331 font-weight: bold; 332 font-size: 11pt; 333 color: #001; 334 text-shadow: 0px 0px 1px rgba(0, 0, 148, 0.9); 335 }
Note: See TracChangeset
for help on using the changeset viewer.