f1dd1c6d3a867345a03ff3b0b13b3e6e640b07ac
[auf_django_skin.git] / auf / django / skin / templates / admin / base.html
1 {% load i18n theming_tags idle %}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
4 <head>
5 <title>{% block title %}{% endblock %}</title>
6 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />
7 {% block extrastyle %}{% endblock %}
8 <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
9 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
10 {% render_theming_css %}
11 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
12 {% idle_head %}
13 {% block extrahead %}{% endblock %}
14 {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
15 </head>
16
17 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
18
19
20 <!-- Container -->
21 <div id="container">
22 {% if not is_popup %}
23 {% idle_box %}
24 <!-- Header -->
25 <div id="header">
26 <div id="branding">
27 {% block branding %}{% endblock %}
28 </div>
29
30 {% if user.is_active and user.is_staff %}
31 <div id="user-tools">
32 {% trans 'Welcome,' %}
33 <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
34 {% block userlinks %}
35 {% url django-admindocs-docroot as docsroot %}
36 {% if docsroot %}
37 <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
38 {% endif %}
39
40 <a href="/">Voir le site</a> /
41 {% if can_change_password %}
42 {% url admin:password_change as password_change_url %}
43 {% if password_change_url %}
44 <a href="{{ password_change_url }}">
45 {% else %}
46 <a href="{{ root_path }}password_change/">
47 {% endif %}
48 {% trans 'Change password' %}</a> /
49 {% endif %}
50 {% url admin:logout as logout_url %}
51 {% if logout_url %}
52 <a href="{{ logout_url }}">
53 {% else %}
54 <a href="{{ root_path }}logout/">
55 {% endif %}
56 {% trans 'Log out' %}</a>
57 {% endblock %}
58 </div>
59 {% endif %}
60 {% block nav-global %}{% endblock %}
61 </div>
62 <!-- END Header -->
63 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
64 {% endif %}
65
66 {% if messages %}
67 <ul class="messagelist">{% for message in messages %}
68 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
69 {% endfor %}</ul>
70 {% endif %}
71
72 <!-- Content -->
73 <div id="content" class="{% block coltype %}colM{% endblock %}">
74 {% block pretitle %}{% endblock %}
75 {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
76 {% block content %}
77 {% block object-tools %}{% endblock %}
78 {{ content }}
79 {% endblock %}
80 {% block sidebar %}{% endblock %}
81 <br class="clear" />
82 </div>
83 <!-- END Content -->
84
85 {% block footer %}<div id="footer"></div>{% endblock %}
86 </div>
87 <!-- END Container -->
88
89 </body>
90 </html>