Version 1.3
[auf_django_skin.git] / auf / django / skin / templates / admin / base.html
1 {% load i18n theming_tags %}
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 {% block extrahead %}{% endblock %}
13 {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
14 </head>
15
16 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
17
18
19 <!-- Container -->
20 <div id="container">
21 {% if not is_popup %}
22 <!-- Header -->
23 <div id="header">
24 <div id="branding">
25 {% block branding %}{% endblock %}
26 </div>
27
28 {% if user.is_active and user.is_staff %}
29 <div id="user-tools">
30 {% trans 'Welcome,' %}
31 <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
32 {% block userlinks %}
33 {% url django-admindocs-docroot as docsroot %}
34 {% if docsroot %}
35 <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
36 {% endif %}
37
38 <a href="/">Voir le site</a> /
39 {% if can_change_password %}
40 {% url admin:password_change as password_change_url %}
41 {% if password_change_url %}
42 <a href="{{ password_change_url }}">
43 {% else %}
44 <a href="{{ root_path }}password_change/">
45 {% endif %}
46 {% trans 'Change password' %}</a> /
47 {% endif %}
48 {% url admin:logout as logout_url %}
49 {% if logout_url %}
50 <a href="{{ logout_url }}">
51 {% else %}
52 <a href="{{ root_path }}logout/">
53 {% endif %}
54 {% trans 'Log out' %}</a>
55 {% endblock %}
56 </div>
57 {% endif %}
58 {% block nav-global %}{% endblock %}
59 </div>
60 <!-- END Header -->
61 {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
62 {% endif %}
63
64 {% if messages %}
65 <ul class="messagelist">{% for message in messages %}
66 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
67 {% endfor %}</ul>
68 {% endif %}
69
70 <!-- Content -->
71 <div id="content" class="{% block coltype %}colM{% endblock %}">
72 {% block pretitle %}{% endblock %}
73 {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
74 {% block content %}
75 {% block object-tools %}{% endblock %}
76 {{ content }}
77 {% endblock %}
78 {% block sidebar %}{% endblock %}
79 <br class="clear" />
80 </div>
81 <!-- END Content -->
82
83 {% block footer %}<div id="footer"></div>{% endblock %}
84 </div>
85 <!-- END Container -->
86
87 </body>
88 </html>