Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions menu/templates/bootstrap4-navbar-submenu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
{% for item in items %}
{% if item.visible %}
<a class="dropdown-item {% if item.selected %} active{% endif %}{% if item.children %} dropdown-submenu{% endif %}" href="{{ item.url }}">{{ item.title }}
{% if item.children %}
{% with items=item.children template_name='bootstrap-navbar-submenu.html' %}
{% include template_name %}
{% endwith %}
{% endif %}
</a>
{% endif %}
{% endfor %}
</div>
22 changes: 22 additions & 0 deletions menu/templates/bootstrap4-navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% for item in menu %}
{% if item.visible %}
{% if item.separator %}
<li class="divider-vertical"></li>
{% endif %}

<li class="nav-item {% if item.selected %} active{% endif %}{% if item.children %} dropdown{% endif %}" id="top-menu-{{ item.slug }}">
<a href="{{ item.url }}" {% if not item.children %}class=nav-link {% endif%} {% if item.children %} class="nav-link dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"{% endif %}>
{% if item.icon %}
<i class="icon-{{ item.icon }} icon-white"></i>&nbsp;
{% endif %}
<span>{{ item.title }}</span>
{% if item.children %}
&nbsp;<b class="caret"></b>
{% endif %}
</a>
{% if item.children %}
{% include 'bootstrap4-navbar-submenu.html' with items=item.children %}
{% endif %}
</li>
{% endif %}
{% endfor %}