mirror of https://github.com/interlegis/sapl.git
2 changed files with 34 additions and 25 deletions
@ -1,23 +1,24 @@ |
|||||
|
|
||||
{% load i18n %} |
{% load i18n %} |
||||
|
|
||||
{% if menu %} |
{% if menu %} |
||||
<ul class="nav nav-pills navbar-right"> |
<ul class="nav nav-pills navbar-right"> |
||||
|
|
||||
{% for item in menu %} |
{% for item in menu %} |
||||
{% if item.children %} |
{% if item.children %} |
||||
<li class="dropdown"> |
<li class="dropdown {{item.active}}"> |
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#fakeLink"> |
<a class="dropdown-toggle" data-toggle="dropdown" href="#fakeLink"> |
||||
{% trans item.title %} |
{% trans item.title %} |
||||
<span class="fa-chevron-down fa"></span> |
<span class="fa-chevron-down fa"></span> |
||||
</a> |
</a> |
||||
<ul class="dropdown-menu" role="menu">{% for subitem in item.children %} |
<ul class="dropdown-menu" role="menu"> |
||||
<li><a href="{{ subitem.url }}">{% trans subitem.title %}</a></li>{% endfor %} |
{% for subitem in item.children %} |
||||
</ul> |
<li class="{{subitem.active}}"><a href="{{ subitem.url }}">{% trans subitem.title %}</a></li> |
||||
</li> |
{% endfor %} |
||||
{% else %} |
</ul> |
||||
<li><a href="{{ item.url }}">{% trans item.title %}</a></li> |
</li> |
||||
{% endif %} |
{% else %} |
||||
|
<li class="{{item.active}}"><a href="{{ item.url }}">{% trans item.title %}</a></li> |
||||
|
{% endif %} |
||||
{% endfor %} |
{% endfor %} |
||||
|
|
||||
</ul> |
</ul> |
||||
{% endif %} |
{% endif %} |
||||
|
Loading…
Reference in new issue