commit c39b367b534097765dad89d59755000c1fc43c60
Author: Iain R. Learmonth <[email protected]>
Date: Tue Nov 21 23:46:40 2017 +0000
Adds link to family search on details page (Fixes: #24380)
---
templates/details/router.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/templates/details/router.html b/templates/details/router.html
index 2f8a323..ef22d90 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -64,7 +64,8 @@
</dd>
</dl>
- <dt><span class="tip" title="Relays that are part of this relay's family
and consider this relay to be part of their family.">Effective 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.">Effective Family
Members</span>
+ <% if (relay.get('effective_family') !== null) { %><a
href="#search/family:<%= relay.get('fingerprint') %>"><i class="fa
fa-search"></i></a><% } %></dt>
<dd>
<pre class="pre-scrollable"><% 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('$', '') %>"><% } %><%=
member %><% if (valid) { %></a><% }}); %>
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits