[tor-commits] [lego/master] Fix download issue in navbar
hiro at torproject.org
hiro at torproject.org
Tue Jun 25 13:48:52 UTC 2019
commit 6e8d6be9f9214608851a8e862ce66befad7a1690
Author: hiro <hiro at torproject.org>
Date: Tue Jun 25 15:47:34 2019 +0200
Fix download issue in navbar
---
templates/navbar.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/templates/navbar.html b/templates/navbar.html
index 928cf99..4ed16ff 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -54,6 +54,14 @@
</div>
</div>
{% set download = site.get('/download') %}
- {{ download }}
+ <div class="pull-right">
+ {% if download == 'None' %}
+ <a class="btn btn-outline-light pull-right" href="https://www.torproject.org/download/">
+ {% else %}
+ <a class="btn btn-outline-light pull-right" href="{{ this.url_to(download)|url(alt=this.alt) }}">
+ {% endif %}
+ {{ _("Download Tor Browser") }}<i class="ml-2 pt-1 fas fa-arrow-down-png"></i>
+ </a>
+ </div>
</nav>
</div>
More information about the tor-commits
mailing list