commit eeb348463d25bc9872692e39b7c28599bb999cf3
Author: Iain R. Learmonth <irl(a)fsfe.org>
Date: Sat Nov 25 20:32:29 2017 +0000
Make exit_address IPs RelaySearch URLs (Fixes: #24395)
---
templates/details/router.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/templates/details/router.html b/templates/details/router.html
index e646937..4b11519 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -30,7 +30,15 @@
<dd><%= relay.get('dir_address') ? relay.get('dir_address') : 'none' %></dd>
<dt><span class="tip" title="Addresses that the relay used to exit to the Internet in the past 24 hours. <em>Only lists addresses that are different from the OR addresses.</em>">Exit Addresses</span></dt>
- <dd><%= relay.get('exit_addresses') ? relay.get('exit_addresses') : 'none' %></dd>
+ <dd>
+ <% if (relay.get('exit_addresses')) { %>
+ <% _.each(relay.get('exit_addresses'), function(exit_address) { %>
+ <a href="#search/<%= exit_address %>"><%= exit_address %></a><br>
+ <% }); %>
+ <% } else { %>
+ none
+ <% } %>
+ </dd>
<dt>
<span class="tip" title="The volume of traffic, both incoming and outgoing, that the relay is willing to sustain, as configured by the operator and claimed to be observed from recent data transfers.">Advertised Bandwidth</span>