From 2e235318786d16fe6a07ed61f6c4ff034b3e3c75 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 19 Jun 2022 15:20:39 -0700 Subject: relay-list: truncate nickname, prevent overflow --- allium/templates/relay-list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allium/templates/relay-list.html b/allium/templates/relay-list.html index 6698755..16be960 100644 --- a/allium/templates/relay-list.html +++ b/allium/templates/relay-list.html @@ -38,12 +38,12 @@ round(2, 'common'), 'KB/s') -%}{% endif -%} {% if relay['effective_family']|length > 1 -%} {{ relay['nickname']|truncate(10)|escape +relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(8)|escape }} ({{ relay['effective_family']| length }}) {% else -%} {{ relay['nickname']|truncate(15)|escape +relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(10)|escape }} {% endif -%} -- cgit v1.2.3-54-g00ecf