From 7f6a05fc2bd7e611c2f9e11dc5960868df482d3c Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 25 Jan 2023 21:11:28 -0700 Subject: templates: make them human-readable, housekeeping --- allium/templates/contact.html | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'allium/templates/contact.html') diff --git a/allium/templates/contact.html b/allium/templates/contact.html index d060a2d..cc3edd1 100644 --- a/allium/templates/contact.html +++ b/allium/templates/contact.html @@ -6,10 +6,22 @@ {% set contact = 'none' %} {% endif %} {% block title %}Tor Relays :: Contact {{ contact_hash }}{% endblock %} -{% block header %}Home :: Contact {{ contact_hash }}{% -endblock %} -{% block description %}Relays with contact info {{ contact }} 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 header %} + Home :: Contact {{ contact_hash }}{% endblock %} + {% block description %} + Relays with contact info {{ contact }} 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 %} -- cgit v1.2.3-54-g00ecf