[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] breadcrumbs: Add services as parent breadcrumb
commit ace633e767b635521e97adf2cdfb82c74195b4c4
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date: Tue Nov 14 11:00:58 2017 +0000
breadcrumbs: Add services as parent breadcrumb
---
index.html | 1 +
js/router.js | 10 +++++-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index 4d99797..208a73b 100644
--- a/index.html
+++ b/index.html
@@ -128,6 +128,7 @@
<div class="container">
<ul class="breadcrumb">
<li><a href="https://metrics.torproject.org/">Home</a></li>
+ <li><a href="https://metrics.torproject.org/services.html">Services</a></li>
<li class="active">Relay Search</li>
</ul>
<h1>Relay Search</h1>
diff --git a/js/router.js b/js/router.js
index 7c0fe80..3c66664 100644
--- a/js/router.js
+++ b/js/router.js
@@ -38,21 +38,21 @@ define([
mainDetailsView.render();
$(".progress").hide();
$("#content").show();
- $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Details for " + relay.get('nickname') + "</li>");
+ $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"https://metrics.torproject.org/services.html\">Services</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Details for " + relay.get('nickname') + "</li>");
},
error: function() {
mainDetailsView.error();
$(".progress").hide();
$("#content").show();
- $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Error</li>");
+ $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"https://metrics.torproject.org/services.html\">Services</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Error</li>");
}
});
},
// Perform a search on Atlas
doSearch: function(query){
- $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Search for " + query + "</li>");
+ $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"https://metrics.torproject.org/services.html\">Services</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Search for " + query + "</li>");
$("#content").hide();
$(".progress").show();
@@ -93,7 +93,7 @@ define([
}
},
showTop10: function(){
- $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Top 10 Relays</li>");
+ $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"https://metrics.torproject.org/services.html\">Services</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Top 10 Relays</li>");
$("#content").hide();
$(".progress").show();
@@ -120,7 +120,7 @@ define([
// No matched rules go to the default home page
defaultAction: function(actions){
- $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li class=\"active\">Relay Search</li>");
+ $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"https://metrics.torproject.org/services.html\">Services</a></li><li class=\"active\">Relay Search</li>");
mainSearchView.render();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits