menus with dropdown : also outline the whole 'More' button when a subitem is current
[unfold.git] / ui / templates / widget-topmenu.html
index f5308de..dbcbe1f 100644 (file)
     <ul class="nav navbar-nav">
        {% for d in topmenu_items %} 
        {% if d.dropdown %}
-       <li class="dropdown">
+       {% if d.is_active %} <li class='active'> {% else %} <li class='other'> {% endif %}
          <a class="dropdown-toggle" data-toggle="dropdown" href="{{ d.href }}">{{ d.label }}<b class="caret"></b></a>
          <ul class="dropdown-menu">
            {% for dd in d.contents %}
            {% if dd.is_active %}<li class='active'>{% else %}<li class='other'>{% endif %}
-           <a class="dropdown-toggle" href="{{ dd.href }}"> {{ dd.label }} </a> </li>
+           <a href="{{ dd.href }}"> {{ dd.label }} </a> </li>
            {% endfor %}
          </ul>
         </li>