commit 3e96fb915401752c7db503417f28553531b1d6a0 Author: hiro hiro@torproject.org Date: Tue Jun 25 15:23:57 2019 +0200
Add rule in navbar to work for other websites refactor --- templates/navbar.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/templates/navbar.html b/templates/navbar.html index 5714435..0e7287d 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -54,12 +54,12 @@ </div> </div> {% set download = site.get('/download') %} - <div class="pull-right"> - {% if this.url_to(download) %} + {% if download %} + <div class="pull-right"> <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> + </div> + {% endif %} </nav> </div>
tor-commits@lists.torproject.org