diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index ffa6025..b03563a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,8 +15,15 @@ {% block top %}{% endblock %} <div id="topbar"> <ul id='action'> -{% for action in actions %} - <li{% ifequal action.id action_selected %} id='selected'{% endifequal %}><a href='/{{ action.path }}' onclick='saveExtent();'>{{ action.label }}</a></li> +{% for action, subactions in actions %} + <li{% ifequal action.id action_selected.0 %} class='selected'{% endifequal %}> + <a href='/{{ action.path }}' onclick='saveExtent();'>{{ action.label }}</a> + {% ifequal action.id action_selected.0 %}{% if subactions %}<ul>{% for subaction in subactions %} + <li{% ifequal subaction.id action_selected.1 %} class='selected'{% endifequal %}> + <a href='/{{ subaction.path }}' onclick='saveExtent();'>{{ subaction.label }}</a> + </li> + {% endfor %}</ul>{% endif %}{% endifequal %} + </li> {% endfor %} </ul> </div> |