aboutsummaryrefslogtreecommitdiff
path: root/allium/templates/platform.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2023-01-25 21:11:28 -0700
committerJordan <me@jordan.im>2023-01-25 21:11:28 -0700
commit7f6a05fc2bd7e611c2f9e11dc5960868df482d3c (patch)
tree97ebb63388abf54948f071905cce40e572bc480a /allium/templates/platform.html
parent76eaf7138df8e9f27d294a988ca109f32201300a (diff)
downloadallium-7f6a05fc2bd7e611c2f9e11dc5960868df482d3c.tar.gz
allium-7f6a05fc2bd7e611c2f9e11dc5960868df482d3c.zip
templates: make them human-readable, housekeeping
Diffstat (limited to 'allium/templates/platform.html')
-rw-r--r--allium/templates/platform.html24
1 files changed, 19 insertions, 5 deletions
diff --git a/allium/templates/platform.html b/allium/templates/platform.html
index 4f6d941..2cac2ab 100644
--- a/allium/templates/platform.html
+++ b/allium/templates/platform.html
@@ -2,8 +2,22 @@
{% set platform = relays.json['relay_subset'][0]['platform']|escape %}
{% block title %}Tor Relays :: {{ platform }}{% endblock %}
{% block header %}<a href="../../">Home</a> :: {{ platform }}{% endblock %}
-{% block description %}{{ platform }} systems are 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 description %}
+ {{ platform }} systems are 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 %}