22 lines
589 B
HTML
22 lines
589 B
HTML
{% if children -%}
|
|
<div class="sidebar-items">
|
|
{% if parents -%}
|
|
<ul class="list-unstyled sidebar-menu sidebar-item">
|
|
<li>
|
|
<a href="{{ parents[-1].name }}" class="no-decoration">
|
|
<i class="icon-angle-left"></i> {{ _("Back") }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
{%- endif %}
|
|
{%- for child in children -%}
|
|
<ul class="list-unstyled sidebar-menu sidebar-item">
|
|
<li>
|
|
<a href="{{ child.name }}" class="no-decoration {% if (pathname or "")==(child.name or "") %}active{% endif %}">
|
|
{{ child.title or child.page_title or (child.name or "") }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
{%- endfor -%}
|
|
</div>
|
|
{%- endif %}
|