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