diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index a3d77a814a..77207ec08a 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -857,20 +857,53 @@ public class I2PSnarkServlet extends Default { out.write(""); out.write(statusString + "\n\t"); + // (i) icon column out.write(""); + if (isValid && meta.getAnnounce() != null) { + // Link to local details page - note that trailing slash on a single-file torrent + // gets us to the details page instead of the file. + //StringBuilder buf = new StringBuilder(128); + //buf.append("\"").append(_("Info")).append("\""); + //out.write(buf.toString()); + + // Link to tracker details page + String trackerLink = getTrackerLink(meta.getAnnounce(), snark.getInfoHash()); + if (trackerLink != null) + out.write(trackerLink); + } + + // File type icon column + out.write("\n"); if (isValid) { + // Link to local details page - note that trailing slash on a single-file torrent + // gets us to the details page instead of the file. StringBuilder buf = new StringBuilder(128); buf.append("\"").append(_("Info")).append("\""); - out.write(buf.toString()); + .append("\">"); + out.write(buf.toString()); + } + String icon; + if (isMultiFile) + icon = "folder"; + else if (isValid) + icon = toIcon(meta.getName()); + else + icon = "magnet"; + if (isValid) { + out.write(toImg(icon, _("Info"))); + out.write(""); + } else { + out.write(toImg(icon)); } - out.write("\n"); - StringBuilder buf = null; + // Torrent name column + out.write(""); if (remaining == 0 || isMultiFile) { - buf = new StringBuilder(128); + StringBuilder buf = new StringBuilder(128); buf.append(""); out.write(buf.toString()); } - String icon; - if (isMultiFile) - icon = "folder"; - else if (isValid) - icon = toIcon(meta.getName()); - else - icon = "magnet"; - if (remaining == 0 || isMultiFile) { - out.write(toImg(icon, _("Open"))); - out.write(""); - } else { - out.write(toImg(icon)); - } - out.write(""); - if (remaining == 0 || isMultiFile) - out.write(buf.toString()); out.write(filename); if (remaining == 0 || isMultiFile) out.write(""); @@ -1169,7 +1186,7 @@ public class I2PSnarkServlet extends Default { out.write(_("From URL")); out.write(": \n"); // not supporting from file at the moment, since the file name passed isn't always absolute (so it may not resolve) //out.write("From file:
");