Changeset 7fe6b35


Ignore:
Timestamp:
Oct 22, 2010 4:49:07 PM (9 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
2293454
Parents:
cfd2ad9
Message:

I2PSnark: Tabs into spaces exercise. Release the kraken!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    rcfd2ad9 r7fe6b35  
    242242        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/status.png\"");
    243243        out.write(" title=\"");
    244                 out.write(_("Torrent Status"));
    245                 out.write("\">");
     244        out.write(_("Torrent Status"));
     245        out.write("\">");
    246246        if (_manager.util().connected() && !snarks.isEmpty()) {
    247247            out.write(" &raquo; <a href=\"");
     
    249249            if (peerParam != null) {
    250250                out.write("\">");
    251                                 out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/showpeers.png\" title=\"");
     251        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/showpeers.png\" title=\"");
    252252                out.write(_("Toggle Peer Visibility"));
    253                                 out.write("\" alt=\"");
    254                                 out.write(_("Hide Peers"));
    255                                 out.write("\">");
     253        out.write("\" alt=\"");
     254        out.write(_("Hide Peers"));
     255        out.write("\">");
    256256            } else {
    257257                out.write("?p=1\">");
    258                                 out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/hidepeers.png\" title=\"");
     258        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/hidepeers.png\" title=\"");
    259259                out.write(_("Toggle Peer Visibility"));
    260                                 out.write("\" alt=\"");
    261                                 out.write(_("Show Peers"));
    262                                 out.write("\">");
     260        out.write("\" alt=\"");
     261        out.write(_("Show Peers"));
     262        out.write("\">");
    263263            }
    264264            out.write("</a><br>\n");
     
    266266        out.write("</th>\n<th align=\"left\">");
    267267        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/torrent.png\" title=\"");
    268                 out.write(_("Loaded Torrents"));
    269                 out.write("\">");
     268        out.write(_("Loaded Torrents"));
     269        out.write("\">");
    270270        out.write(_("Torrent"));
    271271        out.write("</th>\n<th align=\"center\">");
    272272        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/eta.png\" title=\"");
    273273        out.write(_("Estimated Download Time"));
    274                 out.write("\">");
    275                 out.write(_("ETA"));
     274        out.write("\">");
     275        out.write(_("ETA"));
    276276        out.write("</th>\n<th align=\"center\">");
    277                 out.write("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"");
     277        out.write("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"");
    278278        out.write(_("Data Downloaded"));
    279                 out.write("\">");
    280                 out.write(_("RX"));
     279        out.write("\">");
     280        out.write(_("RX"));
    281281        out.write("</th>\n<th align=\"center\">");
    282282        out.write("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"");
    283283        out.write(_("Data Uploaded"));
    284                 out.write("\">");
    285                 out.write(_("TX"));             
     284        out.write("\">");
     285        out.write(_("TX"));
    286286        out.write("</th>\n<th align=\"center\">");
    287287        out.write("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"");
    288288        out.write(_("Download Speed"));
    289                 out.write("\">Rate");
     289        out.write("\">Rate");
    290290        out.write("</th>\n<th align=\"center\">");
    291                 out.write("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"");
     291        out.write("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"");
    292292        out.write(_("Upload Speed"));
    293                 out.write("\">");
    294                 out.write(_("Rate"));
     293        out.write("\">");
     294        out.write(_("Rate"));
    295295        out.write("</th>\n");
    296296        out.write("<th align=\"center\">");
     
    302302            out.write("<img src=\"/themes/snark/ubergine/images/stop_all.png\" title=\"");
    303303            out.write(_("Stop All Torrents"));
    304                         out.write("\" alt=\"");
    305                         out.write(_("Stop All"));
    306                         out.write("\">");
     304            out.write("\" alt=\"");
     305            out.write(_("Stop All"));
     306            out.write("\">");
    307307            out.write("</a>");
    308308        } else if (!snarks.isEmpty()) {
     
    313313            out.write("<img src=\"/themes/snark/ubergine/images/start_all.png\" title=\"");
    314314            out.write(_("Start All Torrents"));
    315                         out.write("\" alt=\"Start All\">");
     315            out.write("\" alt=\"Start All\">");
    316316            out.write("</a>");
    317317        } else {
     
    513513            String upLimit = req.getParameter("upLimit");
    514514            String upBW = req.getParameter("upBW");
    515             String startupDel = req.getParameter("startupDelay");
     515            String startupDel = req.getParameter("startupDelay");
    516516            boolean useOpenTrackers = req.getParameter("useOpenTrackers") != null;
    517517            String openTrackers = req.getParameter("openTrackers");
     
    820820            out.write(_("Stop the torrent"));
    821821            out.write("\">");
    822                         out.write("<img src=\"/themes/snark/ubergine/images/stop.png\" title=\"");
     822            out.write("<img src=\"/themes/snark/ubergine/images/stop.png\" title=\"");
    823823            out.write(_("Stop Torrent"));
    824                         out.write("\" alt=\"");
    825                         out.write(_("Stop"));
    826                         out.write("\">");
     824            out.write("\" alt=\"");
     825            out.write(_("Stop"));
     826            out.write("\">");
    827827            out.write("</a>");
    828828        } else {
     
    832832                out.write(_("Start the torrent"));
    833833                out.write("\">");
    834                                 out.write("<img src=\"/themes/snark/ubergine/images/start.png\" title=\"");
     834                out.write("<img src=\"/themes/snark/ubergine/images/start.png\" title=\"");
    835835                out.write(_("Start Torrent"));
    836                                 out.write("\" alt=\"");
    837                                 out.write(_("Start"));
    838                                 out.write("\">");
     836                out.write("\" alt=\"");
     837                out.write(_("Start"));
     838                out.write("\">");
    839839                out.write("</a>");
    840840            }
     
    848848            out.write(_("Are you sure you want to delete the file \\''{0}.torrent\\'' (downloaded data will not be deleted) ?", fullFilename));
    849849            out.write("')) { return false; }\">");
    850                         out.write("<img src=\"/themes/snark/ubergine/images/remove.png\" title=\"");
     850            out.write("<img src=\"/themes/snark/ubergine/images/remove.png\" title=\"");
    851851            out.write(_("Remove Torrent"));
    852                         out.write("\" alt=\"");
    853                         out.write(_("Remove"));
    854                         out.write("\">");
     852            out.write("\" alt=\"");
     853            out.write(_("Remove"));
     854            out.write("\">");
    855855            out.write("</a>");
    856856            out.write("<a href=\"" + uri + "?action=Delete" + parameters
     
    864864            out.write("')) { return false; }\">");
    865865            out.write("<img src=\"/themes/snark/ubergine/images/delete.png\" title=\"");
    866                         out.write(_("Delete Torrent + Data"));
    867                         out.write("\" alt=\"");
    868                         out.write(_("Delete"));
    869                         out.write("\">");
     866            out.write(_("Delete Torrent + Data"));
     867            out.write("\" alt=\"");
     868            out.write(_("Delete"));
     869            out.write("\">");
    870870            out.write("</a>");
    871871        }
     
    989989        out.write("<input type=\"hidden\" name=\"action\" value=\"Add\" >\n");
    990990        out.write("<div class=\"addtorrentsection\"><span class=\"snarkConfigTitle\">");
    991                 out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/add.png\">");
     991        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/add.png\">");
    992992        out.write(_("Add Torrent"));
    993993        out.write("</span><hr>\n<table border=\"0\"><tr><td>");
     
    10221022        out.write("<span class=\"snarkConfigTitle\">");
    10231023        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/create.png\">");
    1024                 out.write(_("Create Torrent"));
     1024        out.write(_("Create Torrent"));
    10251025        out.write("</span><hr>\n<table border=\"0\"><tr><td>");
    10261026        //out.write("From file: <input type=\"file\" name=\"newFile\" size=\"50\" value=\"" + newFile + "\" /><br>\n");
     
    10701070        out.write("<input type=\"hidden\" name=\"action\" value=\"Save\" >\n");
    10711071        out.write("<span class=\"snarkConfigTitle\">");
    1072                 out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/config.png\">");
     1072        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/config.png\">");
    10731073        out.write(_("Configuration"));
    10741074        out.write("</span><hr>\n");
     
    10901090        out.write("\" >");
    10911091
    1092         out.write("<tr><td>");
     1092        out.write("<tr><td>");
    10931093        out.write(_("Startup delay"));
    10941094        out.write(": <td><input name=\"startupDelay\" size=\"3\" class=\"r\" value=\"" + _manager.util().getStartupDelay() + "\"> ");
     
    11861186        out.write(": <td><textarea name=\"i2cpOpts\" cols=\"60\" rows=\"1\" wrap=\"off\" >"
    11871187                  + opts.toString() + "</textarea><br>\n");
    1188        
    11891188
    11901189        out.write("<tr><td>&nbsp;<td><input type=\"submit\" value=\"");
     
    11981197        out.write("<div class=\"configsection\"><span class=\"snarkConfig\">\n");
    11991198        out.write("<span class=\"snarkConfigTitle\"><a href=\"configure\">");
    1200                 out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/config.png\">");
     1199        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/config.png\">");
    12011200        out.write(_("Configuration"));
    12021201        out.write("</a></span></span></div>\n");
     
    14321431        }
    14331432
    1434                 if (parent)
     1433            if (parent)
    14351434        {
    14361435            buf.append("<tfoot align=\"left\"><tr><td colspan=\"3\"><A HREF=\"");
     
    14401439            buf.append("\"><img border=\"0\" src=\"/themes/snark/ubergine/images/up.png\"> ")
    14411440               .append(_("Up to higher level directory")).append("</A></td></tr></thead>\n");
    1442         }                       
    1443                        
    1444                        
    1445                        
    1446                        
     1441        }
     1442
    14471443
    14481444        buf.append("</TABLE>\n");
    1449         buf.append("</div></div></center></BODY></HTML>\n");
     1445buf.append("</div></div></center></BODY></HTML>\n");
    14501446       
    14511447        return buf.toString();
Note: See TracChangeset for help on using the changeset viewer.