[tor-commits] [tpo/master] Fix tor browser manual link

hiro at torproject.org hiro at torproject.org
Wed Feb 20 14:01:28 UTC 2019


commit 017fc9c6e69845dab45df4c435b0fd00f1dbc073
Author: hiro <hiro at torproject.org>
Date:   Wed Feb 20 15:01:06 2019 +0100

    Fix tor browser manual link
---
 templates/download.html         | 4 +++-
 templates/macros/downloads.html | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/templates/download.html b/templates/download.html
index 897565b..7c16c35 100644
--- a/templates/download.html
+++ b/templates/download.html
@@ -32,7 +32,9 @@
 </div>
 <div class="container justify-content-center mt-4">
   <div class="row justify-content-center">
-    <i class="far fa-file-alt display-5 text-primary pr-3"></i><p class="text-primary text-tpo">{{ _('Check out the <a class="mx-auto" href="https://manual.torproject.org" target="_blank"><u>manual</u></a> for more troubleshooting tips.')|safe  }}</p>
+    <i class="far fa-file-alt display-5 text-primary pr-3"></i>
+    {% from "macros/downloads.html" import render_tor_browser_manual %}
+    <p class="text-primary text-tpo">{{ _('Check out the %s for more troubleshooting tips.')|format(render_tor_browser_manual())|safe  }}</p>
   </div>
 </div>
 <div class="container">
diff --git a/templates/macros/downloads.html b/templates/macros/downloads.html
index 70ff5bd..2ceaef2 100644
--- a/templates/macros/downloads.html
+++ b/templates/macros/downloads.html
@@ -42,3 +42,7 @@
 {% macro render_onion_browser() %}
   <a class="mx-auto" href=""><u>Onion Browser.</u></a>
 {% endmacro %}
+
+{% macro render_tor_browser_manual() %}
+  <a class="mx-auto" href="https://tb-manual.torproject.org" target="_blank"><u>tor browser manual</u></a>
+{% endmacro %}



More information about the tor-commits mailing list