Skip to content

Commit

Permalink
Migrate to bootstrap4.
Browse files Browse the repository at this point in the history
Add possibility to use bootstrap4.

Migrate to bootstrap4.

Add possibility to use bootstrap4.
  • Loading branch information
debdolph committed May 28, 2019
1 parent 843e0de commit 743feb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions menu/templates/bootstrap-navbar-submenu.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<ul class="dropdown-menu">
{% 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 }}
<li class="{% if item.selected %} active{% endif %}{% if item.children %} dropdown-submenu{% endif %}">
<a href="{{ item.url }}">{{ item.title }}</a>
{% if item.children %}
{% with items=item.children template_name='bootstrap-navbar-submenu.html' %}
{% include template_name %}
{% endwith %}
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}
</div>
</ul>
4 changes: 2 additions & 2 deletions menu/templates/bootstrap-navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<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 %}>
<li class="{% if item.selected %} active{% endif %}{% if item.children %} dropdown{% endif %}" id="top-menu-{{ item.slug }}">
<a href="{{ item.url }}"{% if item.children %} class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"{% endif %}>
{% if item.icon %}
<i class="icon-{{ item.icon }} icon-white"></i>&nbsp;
{% endif %}
Expand Down

0 comments on commit 743feb7

Please sign in to comment.