[tor-commits] [lego/master] Add rule in navbar to work for other websites
hiro at torproject.org
hiro at torproject.org
Tue Jun 25 13:21:41 UTC 2019
commit 14f6638b26cb3032202e87c1382583647ba6bbb6
Author: hiro <hiro at torproject.org>
Date: Tue Jun 25 15:21:37 2019 +0200
Add rule in navbar to work for other websites
---
templates/navbar.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/templates/navbar.html b/templates/navbar.html
index 71b4738..5714435 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -55,9 +55,11 @@
</div>
{% set download = site.get('/download') %}
<div class="pull-right">
+ {% if this.url_to(download) %}
<a class="btn btn-outline-light pull-right" href="{{ this.url_to(download)|url(alt=this.alt) }}">
{{ _("Download Tor Browser") }}<i class="ml-2 pt-1 fas fa-arrow-down-png"></i>
</a>
+ {% endif %}
</div>
</nav>
</div>
More information about the tor-commits
mailing list