mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
16 lines
No EOL
422 B
Twig
16 lines
No EOL
422 B
Twig
{% macro nav_loop(page) %}
|
|
{% import _self as macros %}
|
|
{% for p in page.children.visible %}
|
|
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
|
<li>
|
|
<a href="{{ p.url }}" class="{{ active_page }}">
|
|
{{ p.menu }}
|
|
</a>
|
|
{% if p.children.visible.count > 0 %}
|
|
<ul>
|
|
{{ macros.nav_loop(p) }}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
{% endmacro %} |