1.1 --- a/templates/theme.html Thu Dec 04 12:44:15 2014 +0100
1.2 +++ b/templates/theme.html Thu Dec 04 13:24:54 2014 +0100
1.3 @@ -65,9 +65,22 @@
1.4 </div>
1.5 <div class="collapse navbar-collapse">
1.6 <ul class="nav navbar-nav navbar-right">
1.7 - {% for href, caption in get_topmenue(): %}
1.8 - {%- if href[1:] == act -%}
1.9 - <li class="active">{% else %} <li>{% endif %}<a href="{{ href }}" >{{ caption }}</a></li>
1.10 + {% for href, caption, submenu in get_topmenue(): %}
1.11 + {% if submenu[0] %}
1.12 + <li class="dropdown">
1.13 +
1.14 + <a href="{{ href }}" data-toggle="dropdown" class="dropdown-toggle">{{ caption }} <b class="caret"></b></a>
1.15 +
1.16 + <ul class="dropdown-menu">
1.17 + {% for href, caption in submenu: %}
1.18 + <li><a href="{{ href }}"> {{ caption }}</a></li>
1.19 + {% endfor %}
1.20 + </ul>
1.21 + </li>
1.22 + {% else %}
1.23 + {%- if href[1:] == act -%}
1.24 + <li class="active">{% else %} <li>{% endif %}<a href="{{ href }}" >{{ caption }}</a></li>
1.25 + {% endif %}
1.26 {% endfor %}
1.27
1.28 </ul>