[tor-commits] [tpo/master] Localize download link
hiro at torproject.org
hiro at torproject.org
Mon Mar 25 16:36:55 UTC 2019
commit cedcbdbe10e90791eed5e6e06ae55ac20f8baa5f
Author: hiro <hiro at torproject.org>
Date: Mon Mar 25 17:36:44 2019 +0100
Localize download link
---
templates/footer.html | 2 +-
templates/navbar.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/footer.html b/templates/footer.html
index 1648b27..4257132 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -9,7 +9,7 @@
<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) }}">
+ <a class="btn text-primary bg-white btn-light pull-right mt-2" href="{{ this.url_to(download)|url(alt=this.alt) }}">
{{ _("Download Tor Browser") }}<span class="oi oi-arrow-bottom ml-2 p-1" title="icon arrow-bottom" aria-hidden="true"></span>
</a>
</div>
diff --git a/templates/navbar.html b/templates/navbar.html
index 95c07f9..4ba1148 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -54,7 +54,7 @@
</div>
{% set download = site.get('/download') %}
<div class="col-lg-2 col-12">
- <a class="btn btn-outline-light pull-right btn-block" href="{{ this.url_to(download) }}">
+ <a class="btn btn-outline-light pull-right" href="{{ this.url_to(download)|url(alt=this.alt) }}">
{{ _("Download Tor Browser") }}<span class="oi oi-arrow-bottom ml-2 p-1" title="icon arrow-bottom" aria-hidden="true"></span>
</a>
</div>
More information about the tor-commits
mailing list