diff options
| author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2010-01-19 10:12:38 +0000 |
|---|---|---|
| committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2010-01-19 10:12:38 +0000 |
| commit | 5ea14e190998e067748bfedec59eb7c268bd50a3 (patch) | |
| tree | 5316223654a8277c30ece30be565152614b8ee8b /templates | |
| parent | 857433958e87438451e937b1d3e54dbb1924e785 (diff) | |
| download | Chimère-5ea14e190998e067748bfedec59eb7c268bd50a3.tar.bz2 Chimère-5ea14e190998e067748bfedec59eb7c268bd50a3.zip | |
Add a hierarchy to actions - #72
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@48 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'templates')
| -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> |
