[tor-commits] [atlas/master] Add relay nickname to title.

karsten at torproject.org karsten at torproject.org
Mon Mar 11 14:39:43 UTC 2013


commit a189eb5a61701043e8bed4c73ca498c28320f85d
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Mon Mar 11 15:10:58 2013 +0100

    Add relay nickname to title.
    
    Implements #5833.
---
 js/views/about/main.js   |    1 +
 js/views/details/main.js |    1 +
 js/views/search/do.js    |    1 +
 js/views/search/main.js  |    1 +
 4 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/js/views/about/main.js b/js/views/about/main.js
index ea27dfa..87d27e2 100644
--- a/js/views/about/main.js
+++ b/js/views/about/main.js
@@ -14,6 +14,7 @@ define([
         initialize: function() {
         },
         render: function() {
+            document.title = "Atlas";
             var data = {};
             var compiledTemplate = _.template(aboutTemplate, data);
             this.el.html(compiledTemplate);
diff --git a/js/views/details/main.js b/js/views/details/main.js
index c1c0b11..15e7b1c 100644
--- a/js/views/details/main.js
+++ b/js/views/details/main.js
@@ -26,6 +26,7 @@ define([
             var data = {relay: this.model};
             //console.log(data);
             var compiledTemplate = _.template(mainDetailsTemplate, data);
+            document.title = "Atlas: " + this.model.get('nickname');
             this.el.html(compiledTemplate);
             var graph = this.graph;
             this.graph.lookup_bw(this.model.fingerprint, {
diff --git a/js/views/search/do.js b/js/views/search/do.js
index dcc4dcc..bcd3231 100644
--- a/js/views/search/do.js
+++ b/js/views/search/do.js
@@ -145,6 +145,7 @@ define([
 
         },
         render: function(query){
+            document.title = "Atlas";
             this.filtering();
             var asInitVals = new Array();
         	var compiledTemplate = _.template(doSearchTemplate, {relays: this.relays, countries: CountryCodes});
diff --git a/js/views/search/main.js b/js/views/search/main.js
index 77c7813..c9ab9a2 100644
--- a/js/views/search/main.js
+++ b/js/views/search/main.js
@@ -13,6 +13,7 @@ define([
 	    },
 
 	    render: function(query){
+			document.title = "Atlas";
 			var data = {};
 			var compiledTemplate = _.template(mainSearchTemplate, data);
 			this.el.html(compiledTemplate);



More information about the tor-commits mailing list