Opened 10 years ago

Closed 9 years ago

#581 closed enhancement (fixed)

Hide long string in "Destination"

Reported by: Z6 Owned by: str4d
Priority: trivial Milestone: 0.9.3
Component: apps/i2ptunnel Version: 0.8.12
Keywords: Cc:
Parent Tickets: Sensitive: no


I make alot of stability, capacity and speed tests with my routers.
Sometimes i keep 6-10 my own "Client Tunnels" in same time.

I dont really want to create local adressbook alias for each destinations, but b32 not recommended.
For this reason I usually put "long" destination.
As result list of client tunnels looks like crap :)

Its will be great, if you make little fix for full destinations in list.
There is no reason to out 517-symbols string into web interface.


Attachments (1)

Untitled.png (160.8 KB) - added by Z6 10 years ago.
Screenshot of client tunnel lists

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Z6

Attachment: Untitled.png added

Screenshot of client tunnel lists

comment:1 Changed 10 years ago by zzz

div width increased in 0.8.12-3 but still need to truncate in the code.

comment:2 Changed 9 years ago by str4d

Milestone: 0.9.3
Owner: set to str4d
Status: newaccepted

comment:3 Changed 9 years ago by str4d

Resolution: fixed
Status: acceptedclosed

Okay, this is now fixed in trunk [fad154fe832ec5c96c572bb04256a928cd0f4848]. If the client destination is over 70 chars (B32s are 60 chars) then the first 45 characters of the destination are displayed, followed by an ellipsis, and the the last 15 characters of the destination. If the truncation length needs further tweaking, the numbers to change are on lines source:/apps/i2ptunnel/jsp/index.jsp#L288 and 289.

Note: See TracTickets for help on using tickets.