summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: d8127cc7ae864896b2a8342913e466e9cef5488a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>{% block title %}Chimère{% endblock %}</title>
    <script type="text/javascript"><!--
        var media_path = '{{ media_path }}';
    // --></script>
    {% block extra_head %}{{extra_head|safe}}{% endblock %}
    <link rel="stylesheet" href="{{ media_path }}styles.css" />
    {% block head %}{% endblock %}
</head>

<body>
  {% block top %}{% endblock %}
  <div id="topbar">
    <ul id='action'>
{% 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>
  {% block sidebar %}{% endblock %}
  {% block message_map %}{% endblock %}
  {% block message_edit %}{% endblock %}
  {% block content %}{% endblock %}
  {% block bottom %}{% endblock %}
  <div id='footer'>{% block footer %}
{% trans "This site uses Chimère"%} - © 2008-2010 <a href='http://blog.peacefrogs.net/nim/chimere/'>Chimère project</a>
  {% endblock %}</div>
</body>
</html>