wiki-grav/plugins/admin/themes/grav/templates/partials/page-children.html.twig
2022-04-24 14:32:58 +02:00

12 lines
519 B
Twig

<ul class="grav-menu">
{% for page in pages.children %}
<li class="{{ (admin.route and page.route == context.route) ? 'Selected' : '' }} {{ page.children.count > 0 ? 'hasChildren' : '' }}">
<a href="{{ admin_route('/pages/' ~ page.route|trim('/')) }}"><em class="status {{ page.visible ? 'visible' : '' }}"></em>{{ page.menu }}</a>
{% if page.children.count > 0 %}
{% include 'partials/page-children.html.twig' with {pages: page} %}
{% endif %}
</li>
{% endfor %}
</ul>