Ticket #13177: base.html

File base.html, 3.3 KB (added by Fletcher Tomalty, 15 years ago)

The patched admin template file

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