aboutsummaryrefslogtreecommitdiff
path: root/allium/templates/contact.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2020-10-25 20:03:23 -0700
committerJordan <me@jordan.im>2020-10-25 20:03:23 -0700
commitf0c466afa5b1cc7a5e42e2f097f266d137cece10 (patch)
tree4648ae2deaaf8f73a73115f529dbaf90d7f3be80 /allium/templates/contact.html
parent421bd0bc206fa9326ffb8acee547f7b7ea49a2dd (diff)
downloadallium-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.html3
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 }}{%