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

[tor-commits] [lego/master] Fix download issue in navbar



commit 6e8d6be9f9214608851a8e862ce66befad7a1690
Author: hiro <hiro@xxxxxxxxxxxxxx>
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>



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