[tor-commits] [metrics-web/master] Pass metadata through for top relays

karsten at torproject.org karsten at torproject.org
Thu Aug 9 06:39:16 UTC 2018


commit 391cbf5aefb323445108ab71db3862f58c23b45e
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Wed Aug 8 14:14:19 2018 +0100

    Pass metadata through for top relays
    
    Fixes: #27077
---
 src/main/resources/web/js/rs/router.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/web/js/rs/router.js b/src/main/resources/web/js/rs/router.js
index c67c4a1..213b01a 100644
--- a/src/main/resources/web/js/rs/router.js
+++ b/src/main/resources/web/js/rs/router.js
@@ -225,7 +225,12 @@ define([
 
         doSearchView.collection.url = "https://onionoo.torproject.org/details?type=relay&order=-consensus_weight&limit=250&running=true";
             doSearchView.collection.lookup({
-                success: function(err){
+                success: function(err, onionooVersion, buildRevision,
+                                  relaysPublished, bridgesPublished){
+                    doSearchView.onionooVersion = onionooVersion;
+                    doSearchView.buildRevision = buildRevision;
+                    doSearchView.relaysPublished = relaysPublished;
+                    doSearchView.bridgesPublished = bridgesPublished;
                     doSearchView.relays = doSearchView.collection.models;
                     doSearchView.error = err;
                     doSearchView.render("");



More information about the tor-commits mailing list