[tor-commits] [atlas/master] Adding family list to detail view, linking to other relays

art at torproject.org art at torproject.org
Mon Mar 5 23:12:03 UTC 2012


commit b99774eb4c9f687c06de901e886b9da53bfb06a5
Author: Michael Zeltner <m at niij.org>
Date:   Mon Feb 20 01:55:04 2012 +0100

    Adding family list to detail view, linking to other relays
---
 templates/details/main.html |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/templates/details/main.html b/templates/details/main.html
index f03decd..14bdaa7 100644
--- a/templates/details/main.html
+++ b/templates/details/main.html
@@ -62,6 +62,10 @@
     <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>
 
+    <dt><span class"tip" data-content="Other family members of this relay." data-original-title="Family Members">Family Members</span></dt>
+    <dd><pre><% _.each(relay.get('family'), function(member) { %>
+<% member = member.replace("$", "")%><a href="#details/<%= member %>"><%= member %></a><% }); %></pre></dd>
+
     <dt><span class="tip" data-content="Date and time when the relay last published a descriptor to the directory authorities." data-original-title="Descriptor published">Descriptor Published</span></dt>
     <dd><%= relay.get('desc_published') %></dd>
 





More information about the tor-commits mailing list