mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
35 lines
1.2 KiB
Twig
35 lines
1.2 KiB
Twig
{% import "visiosoft.theme.defaultadmin::macros/sections.twig" as menu %}
|
|
|
|
<aside id="menu" class="scrollbar">
|
|
<ul>
|
|
{% if not template.module.parent %}
|
|
{% for section in template.cp.sections.root().visible() %}
|
|
{{ menu.sections(template.cp.sections, section) }}
|
|
{% endfor %}
|
|
|
|
{% for navigation in getSubmenus(template.module.namespace) %}
|
|
<li>
|
|
<a href="{{ url(navigation.href) }}">
|
|
{{ trans(navigation.title) }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% else %}
|
|
{% for navigation in getSections(template.module.parent) %}
|
|
<li>
|
|
<a href="{{ url(navigation.href) }}">
|
|
{{ trans(navigation.title) }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% for navigation in getSections(template.module.namespace) %}
|
|
<li>
|
|
<a href="{{ url(navigation.href) }}">
|
|
{{ trans(navigation.title) }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</ul>
|
|
</aside>
|