[tor-commits] [metrics-web/master] Make relays clickable when aggregating by version

karsten at torproject.org karsten at torproject.org
Wed Jul 18 14:30:12 UTC 2018


commit 8bfe5b9697b5d6d45a2c6f6eb35aba81459586eb
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Tue Jul 10 22:46:41 2018 +0100

    Make relays clickable when aggregating by version
    
    Fixes: #25238
---
 src/main/resources/web/templates/rs/aggregate/search.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/resources/web/templates/rs/aggregate/search.html b/src/main/resources/web/templates/rs/aggregate/search.html
index 19e45e7..ea52d0f 100644
--- a/src/main/resources/web/templates/rs/aggregate/search.html
+++ b/src/main/resources/web/templates/rs/aggregate/search.html
@@ -111,7 +111,7 @@
     <td data-order="<%= aggregate.middle_probability %>"><%= (aggregate.middle_probability * 100).toFixed(4) %>%</td>
     <td data-order="<%= aggregate.exit_probability %>"><%= (aggregate.exit_probability * 100).toFixed(4) %>%</td>
     <td>
-      <% if ((typeof aggregate.as) == "string" || (typeof aggregate.country) == "string") { %>
+      <% if ((typeof aggregate.as) == "string" || (typeof aggregate.country) == "string" || (typeof aggregate.version) == "string") { %>
         <a href="#search/<% if ((typeof aggregate.as) == "string" && query.indexOf("as:") == -1) { %>as:<%= aggregate.as %> <% } if ((typeof aggregate.country) == "string" && query.indexOf("country:") == -1) { %>country:<%= aggregate.country  %> <% } %><%= (query) ? query + " " : "" %><%= (aggregate.version) ? "version:" + aggregate.version + " " : "" %>"><%= aggregate.relays %></a>
       <% } else { %>
         <%= aggregate.relays %>





More information about the tor-commits mailing list