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

[tor-commits] [lego/master] Fix download issue in footer



commit dd1655b879b6b2ff10c187aaba74ddc16733aaf6
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Tue Jun 25 15:48:48 2019 +0200

    Fix download issue in footer
---
 templates/footer.html | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/templates/footer.html b/templates/footer.html
index cbeb039..bff7f34 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -9,7 +9,12 @@
            <h2 class="text-white text-bold">{{ _('Download Tor Browser') }}</h2>
             <p class="text-white">{{ _('Download Tor Browser to experience real private browsing without tracking, surveillance, or censorship.') }}</p>
             {% set download = site.get('/download') %}
-            <a class="btn text-primary bg-white btn-light pull-right mt-2" href="{{ this.url_to(download, alt=this.alt) }}">
+            {% if download == 'None' %}
+              <a class="btn text-primary bg-white btn-light pull-right mt-2" href="https://www.torproject.org/download/";>
+            {% else %}
+              <a class="btn text-primary bg-white btn-light pull-right mt-2" href="{{ this.url_to(download, alt=this.alt) }}">
+            {% endif %}
+
               {{ _("Download Tor Browser") }}<i class="ml-2 pt-1 fas fa-arrow-down-png-purple"></i>
             </a>
         </div>

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