[tor-commits] [atlas/master] Add proper headers for each family member group

irl at torproject.org irl at torproject.org
Thu Apr 20 21:32:46 UTC 2017


commit 502b228cc5076da0d781c54947943de787218328
Author: cypherpunks <cypherpunks at torproject.org>
Date:   Mon Apr 17 00:45:17 2017 +0000

    Add proper headers for each family member group
---
 templates/details/router.html | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/templates/details/router.html b/templates/details/router.html
index 603282a..c915a51 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -109,15 +109,17 @@
     <dt><span class="tip" title="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" title="Other family members of this relay." data-original-title="Family Members">Family Members</span></dt>
+    <dt><span class="tip" title="Relays that are part of this relay's family and consider this relay to be part of their family." data-original-title="Effective Family Members">Effective Family Members</span></dt>
     <dd>
-        Effective family members:<br>
         <pre><% if (relay.get('effective_family') !== null) { %><% _.each(relay.get('effective_family'), function(member) { %><% var valid = member.match(RegExp("^\$[A-F0-9]{40}$")); %>
 <% if (valid) { %><a href="#details/<%= member.replace('$', '') %>" title="Effective family member"><% } %><%= member %><% if (valid) { %></a><% }}); %>
-<% } %><% if (relay.get('effective_family') == null) { %>none<% } %></pre>
-        Alleged family members:<br>
+<% } else { %>none<% } %></pre>
+    </dd>
+    <dt><span class="tip" title="Relays that are part of this relay's family but don't consider this relay to be part of their family." data-original-title="Alleged Members">Alleged Family Members</span></dt>
+    <dd>
         <pre><% if (relay.get('alleged_family') !== null) { %><% _.each(relay.get('alleged_family'), function(member) { %><% var valid = member.match(RegExp("^\$[A-F0-9]{40}$")); %>
-<% if (valid) { %><a href="#details/<%= member.replace('$', '') %>" title="Alleged family member" class="alleged"><% } %><%= member %><% if (valid) { %></a><% }}); %><% } %><% if (relay.get('alleged_family') == null) { %>none<% } %></pre>
+<% if (valid) { %><a href="#details/<%= member.replace('$', '') %>" title="Alleged family member" class="alleged"><% } %><%= member %><% if (valid) { %></a><% }}); %>
+<% } else { %>none<% } %></pre>
     </dd>
 
     <dt><span class="tip" title="What OS and Tor version the relay is using" data-original-title="Platform">Platform</span></dt>



More information about the tor-commits mailing list