PageRenderTime 72ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/django/contrib/admin/templates/admin/base.html

https://code.google.com/p/mango-py/
HTML | 82 lines | 68 code | 7 blank | 7 comment | 0 complexity | 9cf8b8f1013aa0ed018e6657b008cc11 MD5 | raw file
 1{% load url from future %}<!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|default:"en-us" }}" xml: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 %}{% 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<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% 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                {% url 'admin:password_change' as password_change_url %}
36                {% if password_change_url %}
37                    <a href="{{ password_change_url }}">
38                {% else %}
39                    <a href="{{ root_path }}password_change/">
40                {% endif %}
41                {% trans 'Change password' %}</a> /
42                {% url 'admin:logout' as logout_url %}
43                {% if logout_url %}
44                    <a href="{{ logout_url }}">
45                {% else %}
46                    <a href="{{ root_path }}logout/">
47                {% endif %}
48                {% trans 'Log out' %}</a>
49            {% endblock %}
50        </div>
51        {% endif %}
52        {% block nav-global %}{% endblock %}
53    </div>
54    <!-- END Header -->
55    {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
56    {% endif %}
57
58        {% if messages %}
59        <ul class="messagelist">{% for message in messages %}
60          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
61	{% endfor %}</ul>
62        {% endif %}
63
64    <!-- Content -->
65    <div id="content" class="{% block coltype %}colM{% endblock %}">
66        {% block pretitle %}{% endblock %}
67        {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
68        {% block content %}
69        {% block object-tools %}{% endblock %}
70        {{ content }}
71        {% endblock %}
72        {% block sidebar %}{% endblock %}
73        <br class="clear" />
74    </div>
75    <!-- END Content -->
76
77    {% block footer %}<div id="footer"></div>{% endblock %}
78</div>
79<!-- END Container -->
80
81</body>
82</html>