[tor-commits] [atlas/master] Added AS_name and AS_no to details view

karsten at torproject.org karsten at torproject.org
Tue Sep 4 10:41:14 UTC 2012


commit a89e1431ce44d8be7b97c1e61728a8b043112c93
Author: nvivek16 <nvivek16 at gmail.com>
Date:   Sat Aug 25 19:04:22 2012 +0530

    Added AS_name and AS_no to details view
---
 js/models/relay.js          |    2 ++
 templates/details/main.html |    6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index 49ba0ca..ef884e3 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -145,6 +145,8 @@ define([
                 relay.countryname = CountryCodes[relay.country];
                 relay.uptime = model.parsedate(relay.last_restarted);
                 relay.uptime_hr = relay.uptime.hr;
+                relay.as_no = relay.as_number;
+                relay.as_name = relay.as_name;
                 model.set({badexit: false});
                 //console.log(relay.uptime.hrfull);
                 relay.uptime_hrfull = relay.uptime.hrfull;
diff --git a/templates/details/main.html b/templates/details/main.html
index 4a82e30..d224183 100644
--- a/templates/details/main.html
+++ b/templates/details/main.html
@@ -56,6 +56,12 @@
     <dt><span class="tip" data-content="Country as found in a GeoIP database by resolving the relay's first onion-routing address." data-original-title="Country">Country</span></dt>
     <dd><%= relay.get('country') %></dd>
 
+    <dt><span class="tip" data-content="Autonomous System Number" data-original-title="AS Number">AS Number</span></dt>
+    <dd><%= _.escape(relay.get('as_no')) %></dd>
+
+    <dt><span class="tip" data-content="Autonomous System Name" data-original-title="AS Name">AS Name</span></dt>
+    <dd><%= _.escape(relay.get('as_name')) %></dd>
+
     <dt><span class="tip" data-content="Date and time when the relay was last (re-)started." data-original-title="Last restarted">Last Restarted</span></dt>
     <dd><%= relay.get('last_restarted') %></dd>
 



More information about the tor-commits mailing list