commit 6e8d6be9f9214608851a8e862ce66befad7a1690 Author: hiro hiro@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>
tor-commits@lists.torproject.org