Changeset c14760c


Ignore:
Timestamp:
Oct 22, 2010 8:14:51 AM (9 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
a55a464
Parents:
3daa6b9
Message:

I2PSnark: Unbutcher tags; relocate our snark theme to /themes/snark; more css updates.

Files:
2 added
1 deleted
2 edited
29 moved

Legend:

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

    r3daa6b9 rc14760c  
    171171        PrintWriter out = resp.getWriter();
    172172        out.write("<html>\n" +
    173                   "<head><link rel=\"shortcut icon\" href=\"/themes/console/snark/favicon.ico\">\n" +
     173                  "<head><link rel=\"shortcut icon\" href=\"/themes/snark/ubergine/favicon.ico\">\n" +
    174174                  "<title>");
    175175        out.write(_("I2PSnark - Anonymous BitTorrent Client"));
     
    192192            out.write(_("Refresh page"));
    193193            out.write("\" class=\"snarkRefresh\">");
    194             out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/arrow_refresh.png\"> I2PSnark"));
     194            out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/arrow_refresh.png\"> ");
     195            out.write(_("I2PSnark"));
    195196            out.write("</a> <a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\" target=\"_blank\">");
    196197            out.write(_("Forum"));
     
    239240        String uri = req.getRequestURI();
    240241        out.write(TABLE_HEADER);
    241         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/status.png\" title=\"Torrent Status\">Status"));
     242        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/status.png\" >");
     243        out.write("title=\"");
     244                out.write(_("Torrent Status"));
     245                out.write("\">");
    242246        if (_manager.util().connected() && !snarks.isEmpty()) {
    243247            out.write(" &raquo; <a href=\"");
     
    245249            if (peerParam != null) {
    246250                out.write("\">");
    247                 out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/showpeers.png\" title=\"Toggle Peer Visibility\" alt=\"Hide Peers\">"));
     251                                out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/showpeers.png\" title=\"");
     252                out.write(_("Toggle Peer Visibility"));
     253                                out.write(" alt=\"Hide Peers\">");
     254                                out.write(_("Hide Peers"));
     255                                out.write("\">");
    248256            } else {
    249257                out.write("?p=1\">");
    250                 out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/hidepeers.png\" title=\"Toggle Peer Visibility\" alt=\"Show Peers\">"));
     258                                out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/hidepeers.png\" title=\"");
     259                out.write(_("Toggle Peer Visibility"));
     260                                out.write("\" alt=\"Show Peers\">");
    251261            }
    252262            out.write("</a><br>\n");
    253263        }
    254264        out.write("</th>\n<th align=\"left\">");
    255         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/torrent.png\" title=\"Loaded Torrents\">Torrent"));
     265        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/torrent.png\" title=\"");
     266                out.write(_("Loaded Torrents"));
     267                out.write("\">");
     268        out.write(_("Torrent"));
    256269        out.write("</th>\n<th align=\"center\">");
    257         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/eta.png\" title=\"Estimated Download Time\">ETA"));
     270        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/eta.png\" title=\"");
     271        out.write(_("Estimated Download Time"));
     272                out.write("\">");
     273                out.write(_("ETA"));
    258274        out.write("</th>\n<th align=\"center\">");
    259         out.write(_("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"Data Downloaded\">RX"));
     275                out.write("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"");
     276        out.write(_("Data Downloaded"));
     277                out.write("\">");
     278                out.write(_("RX"));
    260279        out.write("</th>\n<th align=\"center\">");
    261         out.write(_("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"Data Uploaded\">TX"));
     280        out.write("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"");
     281        out.write(_("Data Uploaded"));
     282                out.write("\">");
     283                out.write(_("TX"));             
    262284        out.write("</th>\n<th align=\"center\">");
    263         out.write(_("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"Download Speed\">Rate"));
     285        out.write("<img border=\"0\" src=\"/themes/console/images/inbound.png\" title=\"");
     286        out.write(_("Download Speed"));
     287                out.write("\">Rate");
    264288        out.write("</th>\n<th align=\"center\">");
    265         out.write(_("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"Upload Speed\">Rate"));
     289                out.write("<img border=\"0\" src=\"/themes/console/images/outbound.png\" title=\"");
     290        out.write(_("Upload Speed"));
     291                out.write("\">");
     292                out.write(_("Rate"));
    266293        out.write("</th>\n");
    267    
    268294        out.write("<th align=\"center\">");
    269295        if (_manager.util().connected()) {
     
    272298            out.write(_("Stop all torrents and the I2P tunnel"));
    273299            out.write("\">");
    274             out.write(_("<img src=\"/themes/console/snark/images/stop_all.png\" title=\"Stop All Torrents\" alt=\"Stop All\">"));
     300            out.write("<img src=\"/themes/snark/ubergine/images/stop_all.png\" title=\"");
     301            out.write(_("Stop All Torrents"));
     302                        out.write("\" alt=\"");
     303                        out.write(_("Stop All"));
     304                        out.write("\">");
    275305            out.write("</a>");
    276306        } else if (!snarks.isEmpty()) {
     
    279309            out.write(_("Start all torrents and the I2P tunnel"));
    280310            out.write("\">");
    281             out.write(_("<img src=\"/themes/console/snark/images/start_all.png\" title=\"Start All Torrents\" alt=\"Start All\">"));
     311            out.write("<img src=\"/themes/snark/ubergine/images/start_all.png\" title=\"");
     312            out.write(_("Start All Torrents"));
     313                        out.write("\" alt=\"Start All\">");
    282314            out.write("</a>");
    283315        } else {
     
    750782                out.write(TrackerClient.urlencode(snark.meta.getInfoHash()));
    751783                out.write("\" title=\"" + name + ' ' + _("Tracker") + "\" target=\"_blank\">");
    752                 out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/details.png\">"));
     784                out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/details.png\">");
    753785                out.write("</a>");
    754786                break;
     
    786818            out.write(_("Stop the torrent"));
    787819            out.write("\">");
    788             out.write(_("<img src=\"/themes/console/snark/images/stop.png\" title=\"Stop Torrent\" alt=\"Stop\">"));
     820                        out.write("<img src=\"/themes/snark/ubergine/images/stop.png\" title=\"");
     821            out.write(_("Stop Torrent"));
     822                        out.write("\" alt=\"");
     823                        out.write(_("Stop"));
     824                        out.write("\">");
    789825            out.write("</a>");
    790826        } else {
     
    794830                out.write(_("Start the torrent"));
    795831                out.write("\">");
    796                 out.write(_("<img src=\"/themes/console/snark/images/start.png\" title=\"Start Torrent\" alt=\"Start\">"));
     832                                out.write("<img src=\"/themes/snark/ubergine/images/start.png\" title=\"");
     833                out.write(_("Start Torrent"));
     834                                out.write("\" alt=\"");
     835                                out.write(_("Start"));
     836                                out.write("\">");
    797837                out.write("</a>");
    798838            }
     
    806846            out.write(_("Are you sure you want to delete the file \\''{0}.torrent\\'' (downloaded data will not be deleted) ?", fullFilename));
    807847            out.write("')) { return false; }\">");
    808             out.write(_("<img src=\"/themes/console/snark/images/remove.png\" title=\"Remove Torrent\" alt=\"Remove\">"));
     848                        out.write("<img src=\"/themes/snark/ubergine/images/remove.png\" title=\"");
     849            out.write(_("Remove Torrent"));
     850                        out.write("\" alt=\"");
     851                        out.write(_("Remove"));
     852                        out.write("\">");
    809853            out.write("</a>");
    810854            out.write("<a href=\"" + uri + "?action=Delete" + parameters
     
    817861            out.write(_("Are you sure you want to delete the torrent \\''{0}\\'' and all downloaded data?", fullFilename));
    818862            out.write("')) { return false; }\">");
    819             out.write(_("<img src=\"/themes/console/snark/images/delete.png\" title=\"Delete Torrent + Data\" alt=\"Delete\">"));
     863            out.write("<img src=\"/themes/snark/ubergine/images/delete.png\" title=\"");
     864                        out.write(_("Delete Torrent + Data"));
     865                        out.write("\" alt=\"");
     866                        out.write(_("Delete"));
     867                        out.write("\">");
    820868            out.write("</a>");
    821869        }
     
    939987        out.write("<input type=\"hidden\" name=\"action\" value=\"Add\" >\n");
    940988        out.write("<div class=\"addtorrentsection\"><span class=\"snarkConfigTitle\">");
    941         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/add.png\">Add Torrent"));
     989                out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/add.png\">");
     990        out.write(_("Add Torrent"));
    942991        out.write("</span><hr>\n<table border=\"0\"><tr><td>");
    943992        out.write(_("From URL"));
     
    9701019        out.write("<input type=\"hidden\" name=\"action\" value=\"Create\" >\n");
    9711020        out.write("<span class=\"snarkConfigTitle\">");
    972         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/create.png\">Create Torrent"));
     1021        out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/create.png\">");
     1022                out.write(_("Create Torrent"));
    9731023        out.write("</span><hr>\n<table border=\"0\"><tr><td>");
    9741024        //out.write("From file: <input type=\"file\" name=\"newFile\" size=\"50\" value=\"" + newFile + "\" /><br>\n");
     
    10181068        out.write("<input type=\"hidden\" name=\"action\" value=\"Save\" >\n");
    10191069        out.write("<span class=\"snarkConfigTitle\">");
    1020         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/config.png\">Configuration"));
     1070                out.write("<img border=\"0\" src=\"/themes/snark/ubergine/images/config.png\">");
     1071        out.write(_("Configuration"));
    10211072        out.write("</span><hr>\n");
    10221073        out.write("<table border=\"0\"><tr><td>");
     
    11451196        out.write("<div class=\"configsection\"><span class=\"snarkConfig\">\n");
    11461197        out.write("<span class=\"snarkConfigTitle\"><a href=\"configure\">");
    1147         out.write(_("<img border=\"0\" src=\"/themes/console/snark/images/config.png\">Configuration"));
     1198        out.write(_("<img border=\"0\" src=\"/themes/snark/ubergine/images/config.png\">Configuration"));
    11481199        out.write("</a></span></span></div>\n");
    11491200    }
     
    12181269    }
    12191270
    1220     private static final String HEADER = "<link href=\"/themes/console/snark/snark.css\" rel=\"stylesheet\" type=\"text/css\" >";
     1271    private static final String HEADER = "<link href=\"/themes/snark/ubergine/snark.css\" rel=\"stylesheet\" type=\"text/css\" >";
    12211272                                       
    12221273
     
    12851336        title = _("Torrent") + ": " + title;
    12861337        buf.append(title);
    1287         buf.append("</TITLE>").append(HEADER).append("<link rel=\"shortcut icon\" href=\"/themes/console/snark/favicon.ico\"></HEAD><BODY>\n<div class=\"snarknavbar\"> <a href=\"/i2psnark/\" title=\"Torrents\"");
     1338        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\"");
    12881339        buf.append(" class=\"snarkRefresh\">I2PSnark</a>").append("</div>");
    12891340       
    12901341        buf.append("<div class=\"page\"><div class=\"mainsection\">" +
    12911342                   "<TABLE BORDER=0 class=\"snarkTorrents\" cellpadding=\"5px 10px\">" +
    1292                    "<thead><tr><th>").append(_("<img border=\"0\" src=\"/themes/console/snark/images/file.png\" title=\"File\" alt=\"File\">&nbsp;")).append(title).append("</th><th>").append(_("<img border=\"0\" src=\"/themes/console/snark/images/size.png\" title=\"FileSize\" alt=\"FileSize\">Size"))
    1293            .append("</th><th>").append(_("<img border=\"0\" src=\"/themes/console/snark/images/status.png\" title=\"Download Status\">Status")).append("</th></tr></thead>");
     1343                   "<thead><tr><th>").append("<img border=\"0\" src=\"/themes/snark/ubergine/images/file.png\" title=\"").append(_("File")).append("\" alt=\"").append(_("File")).append("\">&nbsp;").append(title).append("</th><th>").append(_("<img border=\"0\" src=\"/themes/snark/ubergine/images/size.png\" title=\"")).append(_("FileSize")).append("\" alt=\"").append(_("FileSize")).append("\">").append(_("Size"));
     1344          buf.append("</th><th>").append("<img border=\"0\" src=\"/themes/snark/ubergine/images/status.png\" title=\"").append(_("Download Status")).append("\">").append(_("Status")).append("</th></tr></thead>");
    12941345        //DateFormat dfmt=DateFormat.getDateTimeInstance(DateFormat.MEDIUM,
    12951346        //                                               DateFormat.MEDIUM);
     
    13841435            //buf.append(URI.encodePath(URI.addPaths(base,"../")));
    13851436            buf.append(URI.addPaths(base,"../"));
    1386             buf.append("\"><img border=\"0\" src=\"/themes/console/snark/images/up.png\"> ")
     1437            buf.append("\"><img border=\"0\" src=\"/themes/snark/ubergine/images/up.png\"> ")
    13871438               .append(_("Up to higher level directory")).append("</A></td></tr></thead>\n");
    13881439        }                       
     
    13931444
    13941445        buf.append("</TABLE>\n");
    1395         buf.append("</div></div></BODY></HTML>\n");
     1446        buf.append("</div></div></center></BODY></HTML>\n");
    13961447       
    13971448        return buf.toString();
Note: See TracChangeset for help on using the changeset viewer.