From 83af3a696c26072b6f6c3c5945633c8652d4216c Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 6 Sep 2020 23:44:18 -0700 Subject: table overflow w/ 1366x768, truncate nicks to 15 chars --- tor-metrics/templates/relay-list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tor-metrics/templates/relay-list.html b/tor-metrics/templates/relay-list.html index 226c0ce..94eda0c 100644 --- a/tor-metrics/templates/relay-list.html +++ b/tor-metrics/templates/relay-list.html @@ -28,9 +28,9 @@ {% set obs_bandwidth = '%s %s'|format((relay['observed_bandwidth'] / 1000)|round(2, 'common'), 'KB/s') %}{% endif %} {% if deactivate != 'family' and relay['effective_family']|length > 1 %} - {{ relay['nickname']|escape }} ({{ relay['effective_family']|length }}) + {{ relay['nickname']|truncate(10)|escape }} ({{ relay['effective_family']|length }}) {% else %} - {{ relay['nickname']|escape }}{% endif %} + {{ relay['nickname']|truncate(15)|escape }}{% endif %} {% if deactivate != 'contact' %} {% if relay['contact'] %} -- cgit v1.2.3-54-g00ecf