diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2014-05-15 16:16:43 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2014-05-15 16:16:43 +0200 |
| commit | 48bbadedf68d48dbbe58aa9cbde3695b56b84171 (patch) | |
| tree | 2966f087165cbeb9ff7b00171112f511f7f50291 /ishtar_common/templates | |
| parent | c057763cc1b0f288ffe27cd9638d113c8859e2d8 (diff) | |
| download | Ishtar-48bbadedf68d48dbbe58aa9cbde3695b56b84171.tar.bz2 Ishtar-48bbadedf68d48dbbe58aa9cbde3695b56b84171.zip | |
Other new design
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/base.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 56ec34e4a..cea906f26 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -89,16 +89,16 @@ <div id="main_menu"> <ul> {% for section in MENU.childs %} - {% if section.available %}<li id='section-{{forloop.counter}}'>{{section.label}} + {% if section.available %}<li id='section-{{section.idx}}'>{{section.label}} <ul> {% for menu_item in section.childs %}{%if menu_item.available%} - {% if menu_item.childs %}<li id='section-{{forloop.parentloop.counter}}-{{forloop.counter}}'>{{menu_item.label}} + {% if menu_item.childs %}<li id='subsection-{{menu_item.idx}}'>{{menu_item.label}} <ul> {% for menu_subitem in menu_item.childs %}{%if menu_subitem.available%} - <li id='section-{{forloop.parentloop.parentloop.counter}}-{{forloop.parentloop.counter}}-{{forloop.counter}}'{%ifequal menu_subitem.idx CURRENT_ACTION%} class='selected'{%endifequal%}><a href='{% url 'action' menu_subitem.idx%}'>{{menu_subitem.label}}</a></li> + <li id='{{menu_subitem.idx}}'{%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> + <li id='{{menu_item.idx}}'{%ifequal menu_item.idx CURRENT_ACTION%} class='selected'{%endifequal%}><a href='{% url 'action' menu_item.idx%}'>{{menu_item.label}}</a></li> {%endif%}{% endif %}{% endfor %} </ul> </li>{%endif%} |
