diff options
author | Jordan <me@jordan.im> | 2020-10-25 20:03:23 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-10-25 20:03:23 -0700 |
commit | f0c466afa5b1cc7a5e42e2f097f266d137cece10 (patch) | |
tree | 4648ae2deaaf8f73a73115f529dbaf90d7f3be80 /allium/templates/contact.html | |
parent | 421bd0bc206fa9326ffb8acee547f7b7ea49a2dd (diff) | |
download | allium-f0c466afa5b1cc7a5e42e2f097f266d137cece10.tar.gz allium-f0c466afa5b1cc7a5e42e2f097f266d137cece10.zip |
include contact hash in listings, related to #1
Diffstat (limited to 'allium/templates/contact.html')
-rw-r--r-- | allium/templates/contact.html | 3 |
1 files changed, 1 insertions, 2 deletions
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 %}<a href="../../">Home</a> :: Contact {{ contact_hash }}{% |