Changeset 4800e73


Ignore:
Timestamp:
Sep 27, 2010 5:04:05 AM (10 years ago)
Author:
z3d <z3d@…>
Branches:
master
Children:
8ab134ff
Parents:
3bd9764
Message:

I2PSnark: Add buttons for start/stop/delete torrents.

Files:
7 added
2 edited

Legend:

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

    r3bd9764 r4800e73  
    271271            out.write(_("Stop all torrents and the I2P tunnel"));
    272272            out.write("\">");
    273             out.write(_("Stop All"));
     273            out.write(_("<img src=\"/themes/console/snark/images/stop_all.png\" title=\"Stop All Torrents\" alt=\"Stop All\">"));
    274274            out.write("</a>");
    275275        } else if (!snarks.isEmpty()) {
     
    278278            out.write(_("Start all torrents and the I2P tunnel"));
    279279            out.write("\">");
    280             out.write(_("Start All"));
     280            out.write(_("<img src=\"/themes/console/snark/images/start_all.png\" title=\"Start All Torrents\" alt=\"Start All\">"));
    281281            out.write("</a>");
    282282        } else {
     
    785785            out.write(_("Stop the torrent"));
    786786            out.write("\">");
    787             out.write(_("Stop"));
     787            out.write(_("<img src=\"/themes/console/snark/images/stop.png\" title=\"Stop Torrent\" alt=\"Stop\">"));
    788788            out.write("</a>");
    789789        } else {
     
    793793                out.write(_("Start the torrent"));
    794794                out.write("\">");
    795                 out.write(_("Start"));
    796                 out.write("</a>\n");
     795                out.write(_("<img src=\"/themes/console/snark/images/start.png\" title=\"Start Torrent\" alt=\"Start\">"));
     796                out.write("</a>");
    797797            }
    798798            out.write("<a href=\"" + uri + "?action=Remove" + parameters
     
    805805            out.write(_("Are you sure you want to delete the file \\''{0}.torrent\\'' (downloaded data will not be deleted) ?", fullFilename));
    806806            out.write("')) { return false; }\">");
    807             out.write(_("Remove"));
    808             out.write("</a><br>");
     807            out.write(_("<img src=\"/themes/console/snark/images/remove.png\" title=\"Remove Torrent\" alt=\"Remove\">"));
     808            out.write("</a>");
    809809            out.write("<a href=\"" + uri + "?action=Delete" + parameters
    810810                      + "\" title=\"");
     
    816816            out.write(_("Are you sure you want to delete the torrent \\''{0}\\'' and all downloaded data?", fullFilename));
    817817            out.write("')) { return false; }\">");
    818             out.write(_("Delete"));
     818            out.write(_("<img src=\"/themes/console/snark/images/delete.png\" title=\"Delete Torrent + Data\" alt=\"Delete\">"));
    819819            out.write("</a>");
    820820        }
  • installer/resources/themes/console/snark/snark.css

    r3bd9764 r4800e73  
    1 /* I2PSnark theme "faze to gray" by dr|z3d */
     1/* I2PSnark theme "Ubergine" by dr|z3d */
    22/* Guantanamo Commemorative Edition. */
    33
     
    169169.snarkTorrentAction {
    170170     text-shadow:1px 1px #550000;
    171          padding: 0 0 1px;
     171         padding: 1px 0 !important;
     172         margin: 0 !important;
     173         text-align: center;
     174}
     175
     176.snarkTorrentAction img {
     177     margin: 0 2px !important;
     178         opacity: 0.6;
     179}
     180
     181.snarkTorrentAction img:hover {
     182     -moz-box-shadow: 0 0 1px 1px #f90;
     183     opacity: 1;
    172184}
    173185
     
    203215     background: #656;
    204216     font-size: 8pt;
    205          border: 1px inset #434;
    206          border-left: 0;
    207          border-right: 0;
     217         border: 1px inset #434 !important;
     218         border-left: 0 !important;
     219         border-right: 0 !important;
    208220}
    209221
     
    260272
    261273.page {
    262      background: #323;
     274     background: #323 url('/themes/console/snark/images/tile2.png');
    263275     color: #310;
    264276     min-width: 820px !important;
     
    271283     font-size: 9pt !important;
    272284     line-height: 160% !important;
    273      -moz-box-shadow: inset 0px 0px 1px 0px #002;
     285     -moz-box-shadow: inset 0px 0px 1px 0px #212;
    274286     -khtml-box-shadow: inset 0px 0px 1px 0px #002;
    275287     box-shadow: inset 0px 0px 1px 0px #002;
    276288     text-align: center;
    277      opacity: 1
     289     opacity: 1;
    278290}
    279291
Note: See TracChangeset for help on using the changeset viewer.