[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Makes effective family count a link to family search (Fixes: #24375)



commit 145e22396d8887bd8e5d263b828f653d83ebc3d8
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Tue Nov 21 20:01:47 2017 +0000

    Makes effective family count a link to family search (Fixes: #24375)
---
 css/atlas.css            | 5 +++++
 templates/search/do.html | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/css/atlas.css b/css/atlas.css
index 7875246..9069a55 100644
--- a/css/atlas.css
+++ b/css/atlas.css
@@ -82,3 +82,8 @@ dd {
     -moz-hyphens: auto;
     hyphens: auto;
 }
+
+/* Override style.css from metrics.torproject.org style */
+td a {
+    padding-right: 0 !important;
+}
diff --git a/templates/search/do.html b/templates/search/do.html
index 53d0ac0..31771b5 100644
--- a/templates/search/do.html
+++ b/templates/search/do.html
@@ -80,8 +80,10 @@
             </td>
 			<td>
             <a href="#details/<%= relay.get('fingerprint') %>">
-            <%= _.escape(relay.get('nickname')) %>
-            <% if (!relay.get('is_bridge')) { %>(<%= relay.get('effective_family') == null ? 1 : relay.get('effective_family').length + 1 %>)<% } %>
+            <%= _.escape(relay.get('nickname')) %></a>
+            <% if (!relay.get('is_bridge')) { %>
+	    (<a href="#search/family:<%= relay.get('fingerprint') %>"><%= relay.get('effective_family') == null ? 1 : relay.get('effective_family').length + 1 %></a>)
+            <% } %>
             </a>
             </td>
 			<td><span data-filter="<%= relay.get('bandwidth') %>"><%= relay.get('bandwidth_hr') %></span></td>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits