File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 3
3
<aside id =" menu" class =" scrollbar" >
4
4
5
5
<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 %}
7
13
{% for section in template .cp .sections .root ().visible() %}
8
14
{{ menu.sections (template .cp .sections , section ) }}
9
15
{% endfor %}
16
22
</li >
17
23
{% endfor %}
18
24
{% 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 ) %}
27
26
<li >
28
27
<a href =" {{ url(navigation .href ) }}" >
29
28
{{ trans(navigation .title ) }}
30
29
</a >
31
30
</li >
32
31
{% endfor %}
32
+
33
33
{% endif %}
34
34
</ul >
35
35
You can’t perform that action at this time.
0 commit comments