diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-02-18 01:44:46 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-02-18 01:44:46 +0100 |
| commit | 19644339f67563d634afb4377bc92e3646ec59a3 (patch) | |
| tree | 5e8a976bbe4a7c85100bfd545b2433877c284d2d /ishtar/templates | |
| parent | 7cf8cfd3817ecf664a7c098b6fed2ac88d9b1785 (diff) | |
| download | Ishtar-19644339f67563d634afb4377bc92e3646ec59a3.tar.bz2 Ishtar-19644339f67563d634afb4377bc92e3646ec59a3.zip | |
Simplify the menu by introducing a third level (closes #226)
Diffstat (limited to 'ishtar/templates')
| -rw-r--r-- | ishtar/templates/base.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ishtar/templates/base.html b/ishtar/templates/base.html index 4d9502d39..e7570e6c3 100644 --- a/ishtar/templates/base.html +++ b/ishtar/templates/base.html @@ -62,8 +62,14 @@ {% if section.available %}<li>{{section.label}} <ul> {% for menu_item in section.childs %}{%if menu_item.available%} + {% if menu_item.childs %}<li>{{menu_item.label}} + <ul> + {% for menu_subitem in menu_item.childs %}{%if menu_subitem.available%} + <li{%ifequal menu_subitem.idx CURRENT_ACTION%} class='selected'{%endifequal%}><a href='{% url action menu_subitem.idx%}'>{{menu_subitem.label}}</a></li> + {%endif%}{% endfor %}</ul></li> + {%else%} <li{%ifequal menu_item.idx CURRENT_ACTION%} class='selected'{%endifequal%}><a href='{% url action menu_item.idx%}'>{{menu_item.label}}</a></li> - {%endif%}{% endfor %} + {%endif%}{% endif %}{% endfor %} </ul> </li>{%endif%} {% endfor %} |
