Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / base.html @ 1a305335

History | View | Annotate | Download (3 KB)

1
{% load admin_static %}{% load url from future %}<!DOCTYPE html>
2
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
3
<head>
4
<title>{% block title %}{% endblock %}</title>
5
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />
6
{% block extrastyle %}{% endblock %}
7
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]-->
8
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
9
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
10
{% block extrahead %}{% endblock %}
11
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
12
</head>
13
{% load i18n %}
14

    
15
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
16

    
17
<!-- Container -->
18
<div id="container">
19

    
20
    {% if not is_popup %}
21
    <!-- Header -->
22
    <div id="header">
23
        <div id="branding">
24
        {% block branding %}{% endblock %}
25
        </div>
26
        {% if user.is_active and user.is_staff %}
27
        <div id="user-tools">
28
            {% trans 'Welcome,' %}
29
            <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
30
            {% block userlinks %}
31
                {% url 'django-admindocs-docroot' as docsroot %}
32
                {% if docsroot %}
33
                    <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
34
                {% endif %}
35
                <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
36
                <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
37
            {% endblock %}
38
        </div>
39
        {% endif %}
40
        {% block nav-global %}{% endblock %}
41
    </div>
42
    <!-- END Header -->
43
    {% block breadcrumbs %}
44
    <div class="breadcrumbs">
45
    <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
46
    {% if title %} &rsaquo; {{ title }}{% endif %}
47
    </div>
48
    {% endblock %}
49
    {% endif %}
50

    
51
    {% block messages %}
52
        {% if messages %}
53
        <ul class="messagelist">{% for message in messages %}
54
          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
55
        {% endfor %}</ul>
56
        {% endif %}
57
    {% endblock messages %}
58

    
59
    <!-- Content -->
60
    <div id="content" class="{% block coltype %}colM{% endblock %}">
61
        {% block pretitle %}{% endblock %}
62
        {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
63
        {% block content %}
64
        {% block object-tools %}{% endblock %}
65
        {{ content }}
66
        {% endblock %}
67
        {% block sidebar %}{% endblock %}
68
        <br class="clear" />
69
    </div>
70
    <!-- END Content -->
71

    
72
    {% block footer %}<div id="footer"></div>{% endblock %}
73
</div>
74
<!-- END Container -->
75

    
76
</body>
77
</html>