[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [depictor/master] Link each relay to itself in the previous



commit 93b83263743555f5b1f20df803288e54ac0a8f50
Author: Tom Ritter <tom@xxxxxxxxx>
Date:   Thu Mar 5 00:46:07 2015 +0100

    Link each relay to itself in the previous
---
 website.py |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/website.py b/website.py
index 2f8c45c..3b95a57 100755
--- a/website.py
+++ b/website.py
@@ -865,15 +865,13 @@ class WebsiteWriter:
 		if relay_fp in self.consensus.routers and \
 			"Named" in self.consensus.routers[relay_fp].flags and \
 			 relay_nickname[0].isdigit():
-			self.site.write("    <td id=\"" \
-			+ relay_nickname \
-			+ "\">" \
+			self.site.write("    <td id=\"" + relay_fp + "\">" \
 			+ relay_fp.substring(0, 8) \
 			+ "<br /><span style=\"tiny\">" \
 			+ relay_fp \
 			+ "</span></td>\n")
 		else:
-			self.site.write("    <td>" \
+			self.site.write("    <td id=\"" + relay_fp + "\">" \
 			+ relay_fp[0:8]
 			+ "<br /><span class=\"tiny\">" \
 			+ relay_fp
@@ -884,7 +882,9 @@ class WebsiteWriter:
 		+ " <br /><span class=\"agt\"><a href=\"https://atlas.torproject.org/#details/"; \
 		+ relay_fp + "\">Atlas</a> | " \
 		+ "<a href=\"https://globe.torproject.org/#/relay/"; + relay_fp \
-		+ "\">Globe</a></span>" \
+		+ "\">Globe</a> | <a href=\"consensus-health-" \
+		+ (self.get_consensus_time() - datetime.timedelta(hours=1)).strftime("%Y-%m-%d-%H-%M")
+		+ ".html#" + relay_fp + "\">&#8668;</a></span>" \
 		+ "</td>\n")
 
 		relevantFlags = set()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits