[tor-commits] [atlas/master] Link the AS number to a search for that AS number

irl at torproject.org irl at torproject.org
Sun May 14 20:27:21 UTC 2017


commit 38917b840275dab65a4e0a4003bc7cc6faca1481
Author: cypherpunks <cypherpunks at torproject.org>
Date:   Sun May 7 00:07:16 2017 +0000

    Link the AS number to a search for that AS number
    
    Closes #22175.
---
 templates/details/router.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/details/router.html b/templates/details/router.html
index e16acc7..e72dbd9 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -108,7 +108,7 @@
     <dd><% if (relay.get('country')) { %><img class="inline country" title="<%= relay.get('countryname') %>" alt="" src="img/cc/<%= relay.get('country') %>.png"/> <%= relay.get('countryname') %><% } else { %>Unknown<% } %></dd>
 
     <dt><span class="tip" title="Autonomous System Number">AS Number</span></dt>
-    <dd><%= relay.get('as_number') ? _.escape(relay.get('as_number')) : "unknown" %></dd>
+    <dd><% if (relay.get('as_number') !== null) { %><a href="#search/as:<%= relay.get('as_number') %>"><%= _.escape(relay.get('as_number')) %></a><% } else { %>unknown<% }; %></dd>
 
     <dt><span class="tip" title="Autonomous System Name">AS Name</span></dt>
     <dd><%= relay.get('as_name') ? _.escape(relay.get('as_name')) : "unknown" %></dd>



More information about the tor-commits mailing list