aboutsummaryrefslogtreecommitdiff
path: root/allium/templates/relay-list.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/relay-list.html
parent421bd0bc206fa9326ffb8acee547f7b7ea49a2dd (diff)
downloadallium-f0c466afa5b1cc7a5e42e2f097f266d137cece10.tar.gz
allium-f0c466afa5b1cc7a5e42e2f097f266d137cece10.zip
include contact hash in listings, related to #1
Diffstat (limited to 'allium/templates/relay-list.html')
-rw-r--r--allium/templates/relay-list.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/allium/templates/relay-list.html b/allium/templates/relay-list.html
index 8283c04..6698755 100644
--- a/allium/templates/relay-list.html
+++ b/allium/templates/relay-list.html
@@ -7,7 +7,7 @@
<tr>
<th></th>
<th>Nickname</th>
-<th></th>
+<th>Contact</th>
<th>Bandwidth</th>
<th class="visible-md visible-lg">IP Address</th>
<th>AS Number</th>
@@ -49,13 +49,15 @@ relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(15)|escape
{% if key != 'contact' -%}
{% if relay['contact'] -%}
-<td><a href="{{ path_prefix }}contact/{{ relay['contact']|hash }}/" title="{{
-relay['contact']|escape }}">&#9993;</a></td>
+<td><code><a href="{{ path_prefix }}contact/{{ relay['contact_md5'] }}/"
+title="{{ relay['contact']|escape }}">{{ relay['contact_md5'][0:8]
+}}</a></code></td>
{% else -%}
-<td title="none">&#9993;</td>
+<td title="none"><code>none</code></td>
{% endif -%}
{% else -%}
-<td title="{{ relay['contact']|escape }}">&#9993;</td>
+<td title="{{ relay['contact']|escape }}"><code>{{ relay['contact_md5'][0:8]
+}}</code></td>
{% endif -%}
<td>{{ obs_bandwidth }}</td>