Changeset 07c21c3


Ignore:
Timestamp:
Aug 24, 2012 10:07:00 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ba0408a
Parents:
5ffefd2
Message:
  • Add link for local torrent file on details page
  • Show totals line even if only one torrent
File:
1 edited

Legend:

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

    r5ffefd2 r07c21c3  
    462462            out.write(_("No torrents loaded."));
    463463            out.write("</i></td></tr>\n");
    464         } else if (snarks.size() > 1) {
     464        } else /** if (snarks.size() > 1) */ {
    465465            out.write("<tfoot><tr>\n" +
    466466                      "    <th align=\"left\" colspan=\"6\">");
     
    21142114               .append("</th></tr>\n");
    21152115
     2116            String fullPath = snark.getName();
     2117            String baseName = urlEncode((new File(fullPath)).getName());
    21162118            buf.append("<tr><td>")
    21172119               .append("<img alt=\"\" border=\"0\" src=\"" + _imgPath + "file.png\" >&nbsp;<b>")
    21182120               .append(_("Torrent file"))
    2119                .append(":</b> ")
    2120                .append(snark.getName())
    2121                .append("</td></tr>\n");
     2121               .append(":</b> <a href=\"/i2psnark/").append(baseName).append("\">")
     2122               .append(fullPath)
     2123               .append("</a></td></tr>\n");
    21222124
    21232125            MetaInfo meta = snark.getMetaInfo();
Note: See TracChangeset for help on using the changeset viewer.