PageRenderTime 58ms CodeModel.GetById 52ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/core/templates/admin/base.html

http://github.com/plushcms/PlushCMS
HTML | 104 lines | 81 code | 16 blank | 7 comment | 0 complexity | ee8f5f0c015ff73f17ca365e86eb09fb MD5 | raw file
  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    <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
 10    {% block extrahead %}{% endblock %}
 11    {% block blockbots %}
 12        <meta name="Robots" content="noindex, nofollow" /><meta name="Author" content="Piotr Tynecki, Paweł Topór" />
 13    {% endblock %}
 14    <style type="text/css">.module h2, .module caption, .inline-group h2 {
 15        background: url('/img/images/nav-bg.gif') repeat-x scroll left bottom #EEEEEE;
 16        color: #666666;
 17    }
 18    </style>
 19</head>
 20
 21{% load i18n %}
 22
 23<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
 24    <!-- Container -->
 25    <div id="container">
 26        {% if not is_popup %}
 27            <!-- Header -->
 28            <div id="header">
 29                <div id="branding">
 30                    {% block branding %}{% endblock %}
 31                </div>
 32                
 33                {% if user.is_active and user.is_staff %}
 34                    <div id="user-tools" style="padding-top: 21px;">
 35                        {% trans "Logged: " %}
 36                        <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
 37                        
 38                        {% block userlinks %}
 39                            {% url django-admindocs-docroot as docsroot %}
 40                            {% url admin:password_change as password_change_url %}
 41                            {% if password_change_url %}
 42                                <a href="{{ password_change_url }}">
 43                            {% else %}
 44                                <a href="{{ root_path }}password_change/">
 45                            {% endif %}
 46                            
 47                            {% trans "Change password" %}</a> /
 48                            
 49                            {% url admin:logout as logout_url %}
 50                            {% if logout_url %}
 51                                <a href="{{ logout_url }}">
 52                            {% else %}
 53                                <a href="{{ root_path }}logout/">
 54                            {% endif %}
 55                            
 56                            {% trans "Log out" %}</a>
 57                        {% endblock %}
 58                    </div>
 59                {% endif %}
 60                
 61                {% block nav-global %}{% endblock %}
 62            </div>
 63            <!-- END Header -->
 64            
 65            {% block breadcrumbs %}
 66                <div class="breadcrumbs"><a href="/">{% trans "Home" %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>
 67            {% endblock %}
 68        {% endif %}
 69
 70        {% if messages %}
 71            <ul class="messagelist">
 72                {% for message in messages %}
 73                    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
 74                {% endfor %}
 75            </ul>
 76        {% endif %}
 77
 78        <!-- Content -->
 79        <div id="content" class="{% block coltype %}colM{% endblock %}">
 80            {% block pretitle %}{% endblock %}
 81            
 82            {% block content_title %}
 83                {% if title %}
 84                    <h1>PlushCMS v0.1.2 - Admin panel</h1>
 85                {% endif %}
 86            {% endblock %}
 87            
 88            {% block content %}
 89                {% block object-tools %}{% endblock %}
 90                {{ content }}
 91            {% endblock %}
 92            
 93            {% block sidebar %}{% endblock %}
 94            <br class="clear" />
 95            
 96            {% block rightblock %}{% endblock %}
 97        </div>
 98        <!-- END Content -->
 99
100        {% block footer %}{% endblock %}
101    </div>
102    <!-- END Container -->
103</body>
104</html>