1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00

sidenav subchildren

This commit is contained in:
chomik
2019-05-08 23:46:30 +02:00
parent 556cdc279a
commit 6fc8bd1a7a
4 changed files with 23 additions and 1 deletions

View File

@@ -21,7 +21,6 @@ docs:
changelog:
url: changelog.html
active: true
title: Changelog
icon: file-plus
label: v1.0.0

View File

@@ -1,5 +1,6 @@
---
title: Alerts
menu: docs.alerts
---
Bootstrap provides an easy way to create predefined alert messages.

View File

@@ -1,5 +1,6 @@
---
title: Avatars
menu: docs.avatars
---
Create and group avatars of various shapes and sizes with one component.

View File

@@ -36,6 +36,27 @@
</li>
{% endfor %}
{% endif %}
{% for p in item[1].children %}
<li class="nav-item">
<a href="{% if p[1].url %}{{ p[1].url }}{% else %}#{% endif %}" class="nav-link">
{{ p[1].title }}
</a>
{% if p[1].children %}
<div class="collapse navbar-collapse" id="sidebar-{{ p[0] }}">
<ul class="nav nav-sm flex-column">
{% for r in p[1].children %}
<li class="nav-item">
<a href="{% if r[1].url %}{{ r[1].url }}{% else %}#{% endif %}" class="nav-link">
{{ r[1].title }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}