diff options
author | Jordan <me@jordan.im> | 2023-07-16 19:15:11 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-07-16 19:15:11 -0700 |
commit | 3220869261ea14181f2a0b2d18b4d86bfecef0ab (patch) | |
tree | 7299cff0103bd24ac14605ca62915ba86cacbe25 | |
parent | 47de578aa735977a5d31af7a7f643fa79eeb2166 (diff) | |
download | allium-3220869261ea14181f2a0b2d18b4d86bfecef0ab.tar.gz allium-3220869261ea14181f2a0b2d18b4d86bfecef0ab.zip |
templates: include AS name in header/title on AS pages
-rw-r--r-- | allium/templates/as.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/allium/templates/as.html b/allium/templates/as.html index 1e9a467..2989477 100644 --- a/allium/templates/as.html +++ b/allium/templates/as.html @@ -1,11 +1,10 @@ {% extends "relay-list.html" %} {% 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 }} -{% if as_name %}({{ as_name }}) {% endif %} -is responsible for ~{{ bandwidth }} MB/s of traffic, with +{% block title %}Tor Relays :: {{ as_name }} ({{ as_number }}){% endblock %} +{% block header %}<a href="../../">Home</a> :: {{ as_name }} ({{ as_number }}){% endblock %} +{% block description %}{{ as_number }} is responsible for ~{{ bandwidth }} MB/s +of traffic, with {% if middle_count > 0 %} {{ middle_count }} middle relay {%- if middle_count > 1 -%}s{% endif %} |