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 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 %}
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
You can’t perform that action at this time.
0 commit comments