[tor-commits] [atlas/master] Adds links to descriptors on details page (Fixes: #25239)

irl at torproject.org irl at torproject.org
Thu Mar 22 11:39:07 UTC 2018


commit 2c383c653101777220bd888600ce7abecb715a61
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Wed Mar 21 14:24:42 2018 +0000

    Adds links to descriptors on details page (Fixes: #25239)
---
 templates/details/router.html | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/templates/details/router.html b/templates/details/router.html
index 3b66315..b523ff4 100644
--- a/templates/details/router.html
+++ b/templates/details/router.html
@@ -286,6 +286,17 @@
   </div>
 </div>
 
+<% if (relay.get('dir_address')) { %>
+<h3>Advanced</h3>
+<p>
+<a href="http://<%= relay.get('dir_address') %>/tor/server/authority"
+  class="btn btn-info">Latest server descriptor</a>
+
+<a href="http://<%= relay.get('dir_address') %>/tor/extra/authority"
+  class="btn btn-info">Latest extra-info descriptor</a>
+</p>
+<% } %>
+
 </div><!-- container-fluid -->
 
 <p>Information for relays was published: <%= relay.get('relaysPublished') %> UTC.</p>





More information about the tor-commits mailing list