aboutsummaryrefslogtreecommitdiff
path: root/allium/templates/as.html
diff options
context:
space:
mode:
Diffstat (limited to 'allium/templates/as.html')
-rw-r--r--allium/templates/as.html23
1 files changed, 16 insertions, 7 deletions
diff --git a/allium/templates/as.html b/allium/templates/as.html
index 137447d..1e9a467 100644
--- a/allium/templates/as.html
+++ b/allium/templates/as.html
@@ -2,10 +2,19 @@
{% 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 {% 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 %}