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 0fc71edc6645cc6d739cdf4b6cce0f7a26edb746..de4edf1c1487ca5c135de76ce96e2333abe3b2ce 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -2634,12 +2634,22 @@ public class I2PSnarkServlet extends BasicServlet { .append(":</b> <a href=\"").append(_contextPath).append('/').append(baseName).append("\">") .append(DataHelper.escapeHTML(fullPath)) .append("</a></td></tr>\n"); + if (snark.getStorage() != null) { + buf.append("<tr><td>"); + toThemeImg(buf, "file"); + buf.append(" <b>") + .append(_("Data location")) + .append(":</b> ") + .append(DataHelper.escapeHTML(snark.getStorage().getBase().getPath())) + .append("</td></tr>\n"); + } + String hex = I2PSnarkUtil.toHex(snark.getInfoHash()); buf.append("<tr><td>"); - toThemeImg(buf, "file"); + toThemeImg(buf, "details"); buf.append(" <b>") - .append(_("Data location")) + .append(_("Info hash")) .append(":</b> ") - .append(DataHelper.escapeHTML(snark.getStorage().getBase().getPath())) + .append(hex) .append("</td></tr>\n"); String announce = null; @@ -2717,7 +2727,6 @@ public class I2PSnarkServlet extends BasicServlet { } } - String hex = I2PSnarkUtil.toHex(snark.getInfoHash()); if (meta == null || !meta.isPrivate()) { buf.append("<tr><td><a href=\"") .append(MagnetURI.MAGNET_FULL).append(hex);