[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [lego/master] Add rule in navbar to work for other websites



commit 14f6638b26cb3032202e87c1382583647ba6bbb6
Author: hiro <hiro@xxxxxxxxxxxxxx>
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>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits