commit 8b126f5d2998d89d2af9c91408bca360a261d287 Author: cypherpunks cypherpunks@torproject.org Date: Sat May 6 22:37:45 2017 +0000
Use consistent naming of the AS number field --- js/models/relay.js | 2 +- templates/details/router.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/models/relay.js b/js/models/relay.js index ab938af..d53eb81 100644 --- a/js/models/relay.js +++ b/js/models/relay.js @@ -185,7 +185,7 @@ define([ relay.last_restarted = relay.last_restarted ? relay.last_restarted : null; relay.last_seen = relay.last_seen ? relay.last_seen : null; relay.downtime = relay.last_seen ? model.parsedate(relay.last_seen).hrfull : null; - relay.as_no = relay.as_number ? relay.as_number : null; + relay.as_number = relay.as_number ? relay.as_number : null; relay.as_name = relay.as_name ? relay.as_name : null; relay.transports = relay.transports ? relay.transports : null; relay.fingerprint = relay.hashed_fingerprint ? relay.hashed_fingerprint : relay.fingerprint; diff --git a/templates/details/router.html b/templates/details/router.html index 430091b..e16acc7 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_no') ? _.escape(relay.get('as_no')) : "unknown" %></dd> + <dd><%= relay.get('as_number') ? _.escape(relay.get('as_number')) : "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>
tor-commits@lists.torproject.org