Changeset 7986f56


Ignore:
Timestamp:
Aug 3, 2009 3:29:35 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c3af134a
Parents:
b5a1763
Message:

truncate long dest names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java

    rb5a1763 r7986f56  
    356356            buf.append("<a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4));
    357357            buf.append("\" target=\"_top\" title=\"Show tunnels\">");
    358             buf.append(name).append("</a><br />\n");
     358            if (name.length() < 16)
     359                buf.append(name);
     360            else
     361                buf.append(name.substring(0,15)).append("&hellip;");
     362            buf.append("</a><br />\n");
    359363            LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash());
    360364            if (ls != null) {
Note: See TracChangeset for help on using the changeset viewer.