aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2022-06-19 15:20:39 -0700
committerJordan <me@jordan.im>2022-06-19 15:20:39 -0700
commit2e235318786d16fe6a07ed61f6c4ff034b3e3c75 (patch)
tree31fbe603daa3626353e13e82c4e1ec3c633b1461
parent81a72253f609cf90c14c89376dca6f69e2ebde97 (diff)
downloadallium-2e235318786d16fe6a07ed61f6c4ff034b3e3c75.tar.gz
allium-2e235318786d16fe6a07ed61f6c4ff034b3e3c75.zip
relay-list: truncate nickname, prevent overflow
-rw-r--r--allium/templates/relay-list.html4
1 files 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 -%}
<td title="{{ relay['nickname']|escape }}"><a href="{{ path_prefix }}relay/{{
-relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(10)|escape
+relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(8)|escape
}}</a> (<a href="{{ path_prefix }}family/{{ relay['fingerprint']|escape }}/">{{
relay['effective_family']| length }}</a>)</td>
{% else -%}
<td title="{{ relay['nickname']|escape }}"><a href="{{ path_prefix}}relay/{{
-relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(15)|escape
+relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(10)|escape
}}</a></td>
{% endif -%}