From f0c466afa5b1cc7a5e42e2f097f266d137cece10 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 25 Oct 2020 20:03:23 -0700 Subject: include contact hash in listings, related to #1 --- allium/templates/contact.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'allium/templates/contact.html') diff --git a/allium/templates/contact.html b/allium/templates/contact.html index ed10631..d060a2d 100644 --- a/allium/templates/contact.html +++ b/allium/templates/contact.html @@ -1,10 +1,9 @@ {% extends "relay-list.html" %} +{% set contact_hash = relays.json['relay_subset'][0]['contact_md5'] %} {% if relays.json['relay_subset'][0]['contact'] %} {% set contact = relays.json['relay_subset'][0]['contact']|escape %} - {% set contact_hash = relays.json['relay_subset'][0]['contact']|hash %} {% else %} {% set contact = 'none' %} - {% set contact_hash = ''|hash %} {% endif %} {% block title %}Tor Relays :: Contact {{ contact_hash }}{% endblock %} {% block header %}Home :: Contact {{ contact_hash }}{% -- cgit v1.2.3-54-g00ecf