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

[tor-commits] [compass/master] Fix links to atlas



commit 9596c8211868cdb6aea9b884a4c18ed1c76c276d
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@xxxxxxxxx>
Date:   Sun Aug 19 16:15:30 2012 +0530

    Fix links to atlas
    
    The shortened fingerprint broke the links to atlas.
    The truncation is down in the jinja2 template and
    not in app.py
---
 app.py                |    2 +-
 templates/result.html |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app.py b/app.py
index 1179b97..2c60a01 100644
--- a/app.py
+++ b/app.py
@@ -69,7 +69,7 @@ def parse(output_string, grouping=False, sort_key=None):
             result.p_middle = values[3]
             result.p_exit = values[4]
             result.nick = values[5]
-            result.fp = values[6][:8]
+            result.fp = values[6]
             result.exit = values[7]
             result.guard = values[8]
             result.cc = values[9]
diff --git a/templates/result.html b/templates/result.html
index b9421fd..563a504 100644
--- a/templates/result.html
+++ b/templates/result.html
@@ -83,7 +83,7 @@
               <td>{{ result.fp }}</td>
               {% else %}
                 <td><a href="https://atlas.torproject.org/#details/{{
-              result.fp }}">{{ result.fp }}</a></td>
+              result.fp }}">{{ result.fp[:8] }}</a></td>
               {% endif %}
               <td>{{ result.exit }}</td>
               <td>{{ result.guard }}</td>

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