diff options
author | Jordan <me@jordan.im> | 2020-09-16 01:04:03 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-09-16 01:04:03 -0700 |
commit | ae8f13ad3d2126c0fc65c8ce7a9bea20a01f6c80 (patch) | |
tree | 7edaf3b521f5fae39a1dfac35952d012e1e53549 /tor-metrics | |
parent | 835e63143b4fbbf7b5cfbc0d31656b53ee4ca7bb (diff) | |
download | allium-ae8f13ad3d2126c0fc65c8ce7a9bea20a01f6c80.tar.gz allium-ae8f13ad3d2126c0fc65c8ce7a9bea20a01f6c80.zip |
make IP addresses clickable, closes #2
Diffstat (limited to 'tor-metrics')
-rw-r--r-- | tor-metrics/templates/relay-list.html | 4 |
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 }}">✉<a></td> + <td><a href="{{ path_prefix }}contact/{{ relay['contact']|hash }}/" title="{{ relay['contact']|escape }}">✉</a></td> {% else %} <td title="none">✉</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> |