Skip to content

Commit 4279386

Browse files
author
Muammer Top
authored
Merge pull request #2 from openclassify/vedat
update
2 parents 7abc429 + 7967442 commit 4279386

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

resources/views/partials/menu.twig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<aside id="menu" class="scrollbar">
44

55
<ul>
6-
{% if not template.module.parent %}
6+
{% set parent = template.module.parent %}
7+
8+
{% if template.module.slug in ['variables','system','redirects','repeaters'] %}
9+
{% set parent = "anomaly.module.settings" %}
10+
{% endif %}
11+
12+
{% if not parent %}
713
{% for section in template.cp.sections.root().visible() %}
814
{{ menu.sections(template.cp.sections, section) }}
915
{% endfor %}
@@ -16,20 +22,14 @@
1622
</li>
1723
{% endfor %}
1824
{% else %}
19-
{% for navigation in getSections(template.module.parent) %}
20-
<li>
21-
<a href="{{ url(navigation.href) }}">
22-
{{ trans(navigation.title) }}
23-
</a>
24-
</li>
25-
{% endfor %}
26-
{% for navigation in getSections(template.module.namespace) %}
25+
{% for navigation in getSections(parent) %}
2726
<li>
2827
<a href="{{ url(navigation.href) }}">
2928
{{ trans(navigation.title) }}
3029
</a>
3130
</li>
3231
{% endfor %}
32+
3333
{% endif %}
3434
</ul>
3535

0 commit comments

Comments
 (0)