mirror of
https://github.com/tabler/tabler.git
synced 2025-12-26 11:16:12 +04:00
sidenav subchildren
This commit is contained in:
@@ -21,7 +21,6 @@ docs:
|
||||
|
||||
changelog:
|
||||
url: changelog.html
|
||||
active: true
|
||||
title: Changelog
|
||||
icon: file-plus
|
||||
label: v1.0.0
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
title: Alerts
|
||||
menu: docs.alerts
|
||||
---
|
||||
|
||||
Bootstrap provides an easy way to create predefined alert messages.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
title: Avatars
|
||||
menu: docs.avatars
|
||||
---
|
||||
|
||||
Create and group avatars of various shapes and sizes with one component.
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user