summaryrefslogtreecommitdiff
path: root/chimere/templates/base.html
blob: 9be4573c33877e0856e68ca6d055d9387e5717cb (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
42
43
{% 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}}';
        var extra_url = "{{extra_url}}";
    // --></script>
    {% block extra_head %}{{extra_head|safe}}{% endblock %}
    <link rel="stylesheet" href="{{media_path}}styles.css" />
    {%if css_area%}<link rel="stylesheet" href="{{media_path}}{{css_area}}" />{%endif%}
    {% block head %}{% endblock %}
</head>

{% block bodyhead %}<body>{% endblock %}
  {% block top %}{% endblock %}
  {% block actions %}<div id="topbar">
    <ul id='action'>
{% for action, subactions in actions %}
      <li{% ifequal action.id action_selected.0 %} class='selected'{% endifequal %}>
        <a href='{{extra_url}}{{ 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='{{extra_url}}{{ subaction.path }}' onclick='saveExtent();'>{{ subaction.label }}</a>
          </li>
        {% endfor %}</ul>{% endif %}{% endifequal %}
      </li>
{% endfor %}
    </ul>
  </div>{% endblock %}
  {% 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>