i2psnark: Show subdirectory in table header on details page

This commit is contained in:
zzz
2014-09-29 13:07:08 +00:00
parent a21e3cd842
commit bfd51097c9

View File

@ -2896,6 +2896,11 @@ public class I2PSnarkServlet extends BasicServlet {
: tx + ": " + directory);
if (showSort)
buf.append("</a>");
int dirSlash = directory.indexOf("/");
if (dirSlash > 0) {
buf.append("&nbsp;");
buf.append(DataHelper.escapeHTML(directory.substring(dirSlash + 1)));
}
buf.append("</th>\n<th align=\"right\">");
if (showSort) {
sort = ("5".equals(sortParam)) ? "-5" : "5";