Fix download issue in footer

This commit is contained in:
hiro 2019-06-25 15:48:48 +02:00
parent 6e8d6be9f9
commit dd1655b879

View File

@ -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>