From 0e4724e1bf3a9c3f05cf10bb3b5e7ac11f8dde30 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 29 Aug 2021 20:36:35 -0700 Subject: only reference AS name if known --- allium/templates/as.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/allium/templates/as.html b/allium/templates/as.html index 3b62b1e..528c865 100644 --- a/allium/templates/as.html +++ b/allium/templates/as.html @@ -2,9 +2,10 @@ {% set as_number = relays.json['relay_subset'][0]['as']|escape %} {% set as_name = relays.json['relay_subset'][0]['as_name']|escape %} {% block title %}Tor Relays :: {{ as_number }}{% endblock %} -{% block header %}Home :: {{ as_number }}{% endblock %} -{% block description %}{{ as_number }} ({{ as_name }}) is responsible for ~{{ -bandwidth }} MB/s of traffic, with {% if middle_count > 0 %}{{ middle_count }} -middle relay{% if middle_count > 1 %}s{% endif %}{% if exit_count > 0 %} and {% -endif %}{% endif %}{% if exit_count > 0 %}{{ exit_count }} exit relay{% if -exit_count > 1 %}s{% endif %}{% endif %}.{% endblock %} +{% block header %}Home :: {{ as_number }}{% endblock %} {% +block description %}{{ as_number }} {% if as_name %}({{ as_name }}){% endif %} +is responsible for ~{{ bandwidth }} MB/s of traffic, with {% if middle_count +> 0 %}{{ middle_count }} middle relay{% if middle_count > 1 %}s{% endif %}{% if +exit_count > 0 %} and {% endif %}{% endif %}{% if exit_count > 0 %}{{ +exit_count }} exit relay{% if exit_count > 1 %}s{% endif %}{% endif %}.{% +endblock %} -- cgit v1.2.3-54-g00ecf