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