diff options
author | Jordan <me@jordan.im> | 2021-08-29 20:36:35 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-08-29 20:36:35 -0700 |
commit | 0e4724e1bf3a9c3f05cf10bb3b5e7ac11f8dde30 (patch) | |
tree | 02292a2e49534980f40a4a2b832259d19e6d891b | |
parent | cfe07cc87581d6820639a593262343ae684eeeb6 (diff) | |
download | allium-0e4724e1bf3a9c3f05cf10bb3b5e7ac11f8dde30.tar.gz allium-0e4724e1bf3a9c3f05cf10bb3b5e7ac11f8dde30.zip |
only reference AS name if known
-rw-r--r-- | allium/templates/as.html | 13 |
1 files 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 %}<a href="../../">Home</a> :: {{ 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 %}<a href="../../">Home</a> :: {{ 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 %} |