[tor-commits] [lego/master] Fix navbar button

hiro at torproject.org hiro at torproject.org
Tue Aug 20 15:19:25 UTC 2019


commit 9c33e2b8740728dc9de4c64915460b76fc7c4061
Author: hiro <hiro at torproject.org>
Date:   Tue Aug 20 17:19:21 2019 +0200

    Fix navbar button
---
 templates/navbar.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/navbar.html b/templates/navbar.html
index fa06de2..7600885 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -43,7 +43,9 @@
       {% set alts = bag('alternatives').items() %}
       {% if alts|length > 1 %}
         <div class="btn-group dropdown pull-right">
-          {% if this.color == 'primary' %}
+          {% if not this.color %}
+            <button type="button" class="btn btn-primary bg-primary dropdown-toggle btn-block" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+          {% elif this.color == 'primary' %}
             <button type="button" class="btn btn-primary bg-primary dropdown-toggle btn-block" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
           {% else %}
             <button type="button" class="btn btn-dark bg-dark dropdown-toggle btn-block my-3 my-sm-0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">



More information about the tor-commits mailing list