[tor-commits] [lego/master] Fix download issue in footer
hiro at torproject.org
hiro at torproject.org
Tue Jun 25 13:48:53 UTC 2019
commit dd1655b879b6b2ff10c187aaba74ddc16733aaf6
Author: hiro <hiro at torproject.org>
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>
More information about the tor-commits
mailing list