aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2020-09-16 01:04:03 -0700
committerJordan <me@jordan.im>2020-09-16 01:04:03 -0700
commitae8f13ad3d2126c0fc65c8ce7a9bea20a01f6c80 (patch)
tree7edaf3b521f5fae39a1dfac35952d012e1e53549
parent835e63143b4fbbf7b5cfbc0d31656b53ee4ca7bb (diff)
downloadallium-ae8f13ad3d2126c0fc65c8ce7a9bea20a01f6c80.tar.gz
allium-ae8f13ad3d2126c0fc65c8ce7a9bea20a01f6c80.zip
make IP addresses clickable, closes #2
-rw-r--r--tor-metrics/templates/relay-list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tor-metrics/templates/relay-list.html b/tor-metrics/templates/relay-list.html
index 94eda0c..1275de1 100644
--- a/tor-metrics/templates/relay-list.html
+++ b/tor-metrics/templates/relay-list.html
@@ -34,7 +34,7 @@
{% if deactivate != 'contact' %}
{% if relay['contact'] %}
- <td><a href="{{ path_prefix }}contact/{{ relay['contact']|hash }}/" title="{{ relay['contact']|escape }}">&#9993;<a></td>
+ <td><a href="{{ path_prefix }}contact/{{ relay['contact']|hash }}/" title="{{ relay['contact']|escape }}">&#9993;</a></td>
{% else %}
<td title="none">&#9993;</td>{% endif %}
{% else %}
@@ -42,7 +42,7 @@
<td>{{ obs_bandwidth }}</td>
- <td class="visible-md visible-lg">{{ relay['or_addresses'][0].split(':', 1)[0]|escape }}</td>
+ <td class="visible-md visible-lg"><a href="https://bgp.he.net/ip/{{ relay['or_addresses'][0].split(':', 1)[0]|escape }}">{{ relay['or_addresses'][0].split(':', 1)[0]|escape }}</a></td>
{% if relay['as'] %}{% if deactivate != 'as' %}
<td><a href="{{ path_prefix }}as/{{ relay['as']|escape }}/">{{ relay['as']|escape }}</a></td>