[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [atlas/master] Improves Outdated Data message (Fixes: #24013)
commit 753b0b508def61197a65609531bdf954aecc62b0
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date: Tue Nov 21 17:17:16 2017 +0000
Improves Outdated Data message (Fixes: #24013)
---
js/helpers.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/helpers.js b/js/helpers.js
index 583a302..1037bb0 100644
--- a/js/helpers.js
+++ b/js/helpers.js
@@ -267,7 +267,7 @@ function checkIfDataIsUpToDate(lastModifiedHeader) {
var currentTime = new Date();
var hoursSinceLastUpdate = (currentTime.getTime() - lastModified.getTime()) / (1000 * 60 * 60);
if (hoursSinceLastUpdate > 24 && $("#outdatedData").length==0) {
- $('<div class="container" id="outdatedData"><div class="alert"><strong>Outdated data!</strong><p>Onionoo seems to serve outdated data :( Last update was: '+lastModified+'</p></div></div>').insertAfter("body > .navbar");
+ $('<div id="outdatedData" class="alert alert-danger"><strong>Outdated data!</strong><p>The Relay Search data source (Onionoo) was last updated: '+lastModified+'. This issue should be resolved soon, please try again later for more recent information.</p></div>').insertAfter(".container > h1");
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits