Skip to content

Commit 743feb7

Browse files
committed
Migrate to bootstrap4.
Add possibility to use bootstrap4. Migrate to bootstrap4. Add possibility to use bootstrap4.
1 parent 843e0de commit 743feb7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
1+
<ul class="dropdown-menu">
22
{% for item in items %}
33
{% if item.visible %}
4-
<a class="dropdown-item {% if item.selected %} active{% endif %}{% if item.children %} dropdown-submenu{% endif %}" href="{{ item.url }}">{{ item.title }}
4+
<li class="{% if item.selected %} active{% endif %}{% if item.children %} dropdown-submenu{% endif %}">
5+
<a href="{{ item.url }}">{{ item.title }}</a>
56
{% if item.children %}
67
{% with items=item.children template_name='bootstrap-navbar-submenu.html' %}
78
{% include template_name %}
89
{% endwith %}
910
{% endif %}
10-
</a>
11+
</li>
1112
{% endif %}
1213
{% endfor %}
13-
</div>
14+
</ul>

menu/templates/bootstrap-navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<li class="divider-vertical"></li>
55
{% endif %}
66

7-
<li class="nav-item {% if item.selected %} active{% endif %}{% if item.children %} dropdown{% endif %}" id="top-menu-{{ item.slug }}">
8-
<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 %}>
7+
<li class="{% if item.selected %} active{% endif %}{% if item.children %} dropdown{% endif %}" id="top-menu-{{ item.slug }}">
8+
<a href="{{ item.url }}"{% if item.children %} class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"{% endif %}>
99
{% if item.icon %}
1010
<i class="icon-{{ item.icon }} icon-white"></i>&nbsp;
1111
{% endif %}

0 commit comments

Comments
 (0)