diff options
author | Jordan <me@jordan.im> | 2020-09-04 14:40:43 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-09-04 14:40:43 -0700 |
commit | ab08066969ac13f8fa1cf3029eacca9ebb171106 (patch) | |
tree | ff14ad910dcba459489c9c5d5337ed4a4e666d2b /tor-metrics | |
parent | 9a33d379d8fa7fc5e4f59b122d9212a07fadb37a (diff) | |
download | allium-ab08066969ac13f8fa1cf3029eacca9ebb171106.tar.gz allium-ab08066969ac13f8fa1cf3029eacca9ebb171106.zip |
link to contact-sorted page from relay listing
Diffstat (limited to 'tor-metrics')
-rw-r--r-- | tor-metrics/templates/relay-list.html | 14 |
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>✉</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 }}">✉<a></td> + {% else %} + <td title="none">✉</td>{% endif %} + {% else %} + <td title="{{ relay['contact']|escape }}">✉</td>{% endif %} + <td>{{ obs_bandwidth }}</td> <td class="visible-md visible-lg">{{ relay['or_addresses'][0].split(':', 1)[0]|escape }}</td> |