aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2020-09-04 14:40:43 -0700
committerJordan <me@jordan.im>2020-09-04 14:40:43 -0700
commitab08066969ac13f8fa1cf3029eacca9ebb171106 (patch)
treeff14ad910dcba459489c9c5d5337ed4a4e666d2b
parent9a33d379d8fa7fc5e4f59b122d9212a07fadb37a (diff)
downloadallium-ab08066969ac13f8fa1cf3029eacca9ebb171106.tar.gz
allium-ab08066969ac13f8fa1cf3029eacca9ebb171106.zip
link to contact-sorted page from relay listing
-rw-r--r--tor-metrics/templates/relay-list.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/tor-metrics/templates/relay-list.html b/tor-metrics/templates/relay-list.html
index da6f175..fa8cc79 100644
--- a/tor-metrics/templates/relay-list.html
+++ b/tor-metrics/templates/relay-list.html
@@ -6,6 +6,7 @@
<table class="table table-condensed">
<tr>
<th>Nickname</th>
+ <th>&#9993;</th>
<th>Bandwidth</th>
<th class="visible-md visible-lg">IP Address</th>
<th>AS Number</th>
@@ -27,9 +28,18 @@
{% set obs_bandwidth = '%s %s'|format((relay['observed_bandwidth'] / 1000)|round(2, 'common'), 'KB/s') %}{% endif %}
{% if deactivate != 'family' and relay['effective_family']|length > 1 %}
- <td><a href="{{ path_prefix }}relay/{{ relay['fingerprint']|escape }}.html">{{ relay['nickname']|escape }}</a> (<a href="{{ path_prefix }}family/{{ relay['effective_family'][0]|escape }}/">{{ relay['effective_family']|length }}</a>)</td>
+ <td><a href="{{ path_prefix }}relay/{{ relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(10)|escape }}</a> (<a href="{{ path_prefix }}family/{{ relay['effective_family'][0]|escape }}/">{{ relay['effective_family']|length }}</a>)</td>
{% else %}
- <td><a href="{{ path_prefix}}relay/{{ relay['fingerprint']|escape }}.html">{{ relay['nickname']|escape }}</a></td>{% endif %}
+ <td><a href="{{ path_prefix}}relay/{{ relay['fingerprint']|escape }}.html">{{ relay['nickname']|truncate(10)|escape }}</a></td>{% endif %}
+
+ {% if deactivate != 'contact' %}
+ {% if relay['contact'] %}
+ <td><a href="{{ path_prefix }}contact/{{ relay['contact']|hash }}/" title="{{ relay['contact']|escape }}">&#9993;<a></td>
+ {% else %}
+ <td title="none">&#9993;</td>{% endif %}
+ {% else %}
+ <td title="{{ relay['contact']|escape }}">&#9993;</td>{% endif %}
+
<td>{{ obs_bandwidth }}</td>
<td class="visible-md visible-lg">{{ relay['or_addresses'][0].split(':', 1)[0]|escape }}</td>