~canonical-django/canonical-django/project-template

« back to all changes in this revision

Viewing changes to trunk/python-packages/django/contrib/admin/templates/admin/base.html

  • Committer: Matthew Nuzum
  • Date: 2008-11-13 05:46:03 UTC
  • Revision ID: matthew.nuzum@canonical.com-20081113054603-v0kvr6z6xyexvqt3
adding to version control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
 
7
{% block extrastyle %}{% endblock %}
 
8
{% block extrahead %}{% endblock %}
 
9
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
 
10
</head>
 
11
{% load i18n %}
 
12
 
 
13
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
 
14
 
 
15
<!-- Container -->
 
16
<div id="container">
 
17
 
 
18
    {% if not is_popup %}
 
19
    <!-- Header -->
 
20
    <div id="header">
 
21
        <div id="branding">
 
22
        {% block branding %}{% endblock %}
 
23
        </div>
 
24
        {% if user.is_authenticated and user.is_staff %}
 
25
        <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div>
 
26
        {% endif %}
 
27
        {% block nav-global %}{% endblock %}
 
28
    </div>
 
29
    <!-- END Header -->
 
30
    {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title|escape }}{% endif %}</div>{% endblock %}
 
31
    {% endif %}
 
32
 
 
33
        {% if messages %}
 
34
        <ul class="messagelist">{% for message in messages %}<li>{{ message|escape }}</li>{% endfor %}</ul>
 
35
        {% endif %}
 
36
 
 
37
    <!-- Content -->
 
38
    <div id="content" class="{% block coltype %}colM{% endblock %}">
 
39
        {% block pretitle %}{% endblock %}
 
40
        {% block content_title %}{% if title %}<h1>{{ title|escape }}</h1>{% endif %}{% endblock %}
 
41
        {% block content %}
 
42
        {% block object-tools %}{% endblock %}
 
43
        {{ content }}
 
44
        {% endblock %}
 
45
        {% block sidebar %}{% endblock %}
 
46
        <br class="clear" />
 
47
    </div>
 
48
    <!-- END Content -->
 
49
 
 
50
    {% block footer %}<div id="footer"></div>{% endblock %}
 
51
</div>
 
52
<!-- END Container -->
 
53
 
 
54
</body>
 
55
</html>