[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Display additional info if a relay is offline.
commit e71e98f8c8841d7dd88ff2aa217f077d33f2ee81
Author: Philipp Winter <phw@xxxxxxxxxxxxxx>
Date: Thu Oct 10 00:58:34 2013 +0200
Display additional info if a relay is offline.
If a relay is offline, write 'Last Known Properties' instead of merely
'Properties' and display an additional field called 'Last Seen'. That should
cause less confusion.
---
templates/details/main.html | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/templates/details/main.html b/templates/details/main.html
index 542e5a2..1fc243a 100644
--- a/templates/details/main.html
+++ b/templates/details/main.html
@@ -55,8 +55,15 @@
</div>
<div class="span4">
+ <% if (relay.get('running') === true) { %>
<h3>Properties</h3>
<dl>
+ <% } else { %>
+ <h3>Last Known Properties</h3>
+ <dl>
+ <dt><span class="tip" data-content="Timestamp when the relay was last seen in the consensus." data-original-title="Last seen">Last Seen</span></dt>
+ <dd><%= relay.get('last_seen') %></dd>
+ <% } %>
<dt><span class="tip" data-content="20-byte unique identifier of the relay." data-original-title="Fingerprint">Fingerprint</span></dt>
<dd><%= relay.get('fingerprint') %></dd>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits