[tor-commits] [atlas/master] Adds "first seen" to the details pages for relays and bridges

irl at torproject.org irl at torproject.org
Thu Sep 14 10:27:53 UTC 2017


commit 094c63b9866409a34fbf3303c07a81d09b8ba60a
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Thu Sep 14 11:11:59 2017 +0100

    Adds "first seen" to the details pages for relays and bridges
    
    Closes: #21958
---
 js/models/relay.js            | 1 +
 templates/details/bridge.html | 3 +++
 templates/details/router.html | 3 +++
 3 files changed, 7 insertions(+)

diff --git a/js/models/relay.js b/js/models/relay.js
index 8550d2d..5167ca8 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -169,6 +169,7 @@ define([
                     relay.dir_port = relay.dir_address ? relay.dir_address.split(":")[1] : 0;
                     relay.country = relay.country ? relay.country.toLowerCase() : null;
                     relay.countryname = relay.country ? CountryCodes[relay.country] : null;
+                    relay.first_seen = relay.first_seen ? relay.first_seen : null;
                     relay.uptime = relay.last_restarted ? model.parsedate(relay.last_restarted) : null;
                     relay.uptime_hr = relay.last_restarted ? relay.uptime.hr : null;
                     relay.uptime_hrfull = relay.last_restarted ? relay.uptime.hrfull : null;
diff --git a/templates/details/bridge.html b/templates/details/bridge.html
index 8c9b1b4..f700d5a 100644
--- a/templates/details/bridge.html
+++ b/templates/details/bridge.html
@@ -73,6 +73,9 @@
     <%=propertyCount==0?'none':''%>
     </dd>
 
+    <dt><span class="tip" title="The first time that this relay was seen online.">First Seen</span></dt>
+    <dd><%= relay.get('first_seen') %></dd>
+
     <dt><span class="tip" title="Date and time when the bridge was last (re-)started.">Last Restarted</span></dt>
     <dd><%= relay.get('last_restarted') %></dd>
 
diff --git a/templates/details/router.html b/templates/details/router.html
index f0f3105..9195f4c 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -114,6 +114,9 @@
     <dt><span class="tip" title="Autonomous System Name">AS Name</span></dt>
     <dd><%= relay.get('as_name') ? _.escape(relay.get('as_name')) : "unknown" %></dd>
 
+    <dt><span class="tip" title="The first time that this relay was seen online.">First Seen</span></dt>
+    <dd><%= relay.get('first_seen') %></dd>
+
     <dt><span class="tip" title="Date and time when the relay was last (re-)started.">Last Restarted</span></dt>
     <dd><%= relay.get('last_restarted') %></dd>
 





More information about the tor-commits mailing list