From ab08066969ac13f8fa1cf3029eacca9ebb171106 Mon Sep 17 00:00:00 2001 From: Jordan Date: Fri, 4 Sep 2020 14:40:43 -0700 Subject: link to contact-sorted page from relay listing --- tor-metrics/templates/relay-list.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tor-metrics/templates/relay-list.html b/tor-metrics/templates/relay-list.html index da6f175..fa8cc79 100644 --- a/tor-metrics/templates/relay-list.html +++ b/tor-metrics/templates/relay-list.html @@ -6,6 +6,7 @@ + @@ -27,9 +28,18 @@ {% 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 %} - + {% else %} - {% endif %} + {% endif %} + + {% if deactivate != 'contact' %} + {% if relay['contact'] %} + + {% else %} + {% endif %} + {% else %} + {% endif %} + -- cgit v1.2.3-54-g00ecf
Nickname Bandwidth IP Address AS Number{{ relay['nickname']|escape }} ({{ relay['effective_family']|length }}){{ relay['nickname']|truncate(10)|escape }} ({{ relay['effective_family']|length }}){{ relay['nickname']|escape }}{{ relay['nickname']|truncate(10)|escape }}{{ obs_bandwidth }} {{ relay['or_addresses'][0].split(':', 1)[0]|escape }}