Skip to content

Commit

Permalink
Migrate to bootstrap4.
Browse files Browse the repository at this point in the history
  • Loading branch information
debdolph committed May 28, 2019
1 parent c9d8c4f commit 65da313
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions menu/templates/bootstrap-navbar-submenu.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<ul class="dropdown-menu">
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
{% for item in items %}
{% if item.visible %}
<li class="{% if item.selected %} active{% endif %}{% if item.children %} dropdown-submenu{% endif %}">
<a href="{{ item.url }}">{{ item.title }}</a>
<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 %}
</li>
</a>
{% endif %}
{% endfor %}
</ul>
</div>
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="{% 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 %}>
<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 %}
Expand Down

0 comments on commit 65da313

Please sign in to comment.