wiki/cinder/nav-sub.html

15 lines
422 B
HTML
Raw Permalink Normal View History

2022-10-11 22:59:58 +00:00
{% if not nav_item.children %}
<li {% if nav_item.active %}class="active"{% endif %}>
<a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
</li>
{% else %}
<li class="dropdown-submenu">
<a tabindex="-1" href="">{{ nav_item.title }}</a>
<ul class="dropdown-menu">
{% for nav_item in nav_item.children %}
{% include "nav-sub.html" %}
{% endfor %}
</ul>
</li>
{% endif %}