2016-06-26 22:01:42 +00:00
|
|
|
{% load sitetree %}
|
2018-06-04 08:54:51 +00:00
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNavDropdown">
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
{% for item in sitetree_items %}
|
|
|
|
{% if not forloop.first %}
|
|
|
|
{% if item.has_children %}
|
|
|
|
<li class="nav-item mx-3 dropdown {% if item.is_current or item.in_current_branch %}active{% endif %}">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
{{ item.title_resolved }} {% if item.is_current or item.in_current_branch %}<span class="sr-only">(current)</span>{% endif %}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
{% sitetree_children of item for menu template "sitetree_children.html" %}
|
2017-04-10 11:10:25 +00:00
|
|
|
</div>
|
2018-06-04 08:54:51 +00:00
|
|
|
</li>
|
2017-04-10 11:10:25 +00:00
|
|
|
{% else %}
|
2018-06-04 08:54:51 +00:00
|
|
|
<li class="nav-item mx-3 {% if item.has_children %}dropdown}{% endif %} {% if item.is_current or item.in_current_branch %}active{% endif %}">
|
|
|
|
<a class="nav-link" href="{% sitetree_url for item %}">
|
|
|
|
{{ item.title_resolved }} {% if item.is_current or item.in_current_branch %}<span class="sr-only">(current)</span>{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-04-10 11:10:25 +00:00
|
|
|
{% endif %}
|
2018-06-04 08:54:51 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|