aboutsummaryrefslogtreecommitdiff
path: root/tor-metrics/templates/relay-list.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2020-02-17 14:36:27 -0700
committerJordan <me@jordan.im>2020-02-17 14:36:27 -0700
commit243e126fb80a475aef51f9b0cbe3dd8c7b228f20 (patch)
treef723fc81b0293067a9fdd1253ffb0fe01fbd4cb6 /tor-metrics/templates/relay-list.html
parent0881b659d967a2d7f1725a32e2e95a8cbaf6d401 (diff)
downloadallium-243e126fb80a475aef51f9b0cbe3dd8c7b228f20.tar.gz
allium-243e126fb80a475aef51f9b0cbe3dd8c7b228f20.zip
truncate long platforms, flag links globally
Diffstat (limited to 'tor-metrics/templates/relay-list.html')
-rw-r--r--tor-metrics/templates/relay-list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tor-metrics/templates/relay-list.html b/tor-metrics/templates/relay-list.html
index 475ee75..024e658 100644
--- a/tor-metrics/templates/relay-list.html
+++ b/tor-metrics/templates/relay-list.html
@@ -54,9 +54,9 @@
<td>X</td>{% endif %}
{% if deactivate != 'platform' %}
- <td><a href="{{ path_prefix }}platform/{{ relay['platform']|escape }}/">{{ relay['platform']|escape }}</a></td>
+ <td><a href="{{ path_prefix }}platform/{{ relay['platform']|escape }}/">{{ relay['platform']|truncate(length=10)|escape }}</a></td>
{% else %}
- <td>{{ relay['platform']|escape }}</td>{% endif %}
+ <td>{{ relay['platform']|truncate(length=10)|escape }}</td>{% endif %}
<td>{% for flag in relay['flags'] %}{% if flag != 'StaleDesc' %}<a href="{{ path_prefix }}flag/{{ flag.lower()|escape }}"><img src="{{ path_prefix}}static/images/flags/{{ flag.lower()|escape }}.png" title="{{ flag|escape }}" alt="{{ flag|escape }}"></a> {% endif %}{% endfor %}</td>