diff options
Diffstat (limited to 'design/templates/admin/base.html')
-rw-r--r-- | design/templates/admin/base.html | 176 |
1 files changed, 68 insertions, 108 deletions
diff --git a/design/templates/admin/base.html b/design/templates/admin/base.html index 3ed4858..455d0d2 100644 --- a/design/templates/admin/base.html +++ b/design/templates/admin/base.html @@ -1,119 +1,79 @@ -{% load admin_static %}{% load url from future %}{% load i18n grp_tags %} -<!DOCTYPE html> -<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% comment %}{% if LANGUAGE_BIDI %}dir="rtl"{% endif %}{% endcomment %}> +{% load admin_static %}<!DOCTYPE html> +<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> <head> - <title>{% block title %}{% endblock %}</title> - <meta charset="utf-8" /> - {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %} - <!-- STYLESHEETS --> - {% block stylesheets %} - <link href="{% static "grappelli/jquery/ui/css/custom-theme/jquery-ui-1.8.18.custom.css" %}" rel="stylesheet" type="text/css" media="screen" /> - <link href="{% static "grappelli/stylesheets/screen.css" %}" rel="stylesheet" type="text/css" media="screen" /> - <link href="{% static "grappelli/stylesheets/mueller/grid/output.css" %}" rel="stylesheet" type="text/css" media="screen" /> - {% comment %}{% if LANGUAGE_BIDI %}<link href="{% block stylesheet_rtl %}{% static "grappelli/css/rtl.css" %}{% endblock %}" rel="stylesheet" type="text/css" media="screen" />{% endif %}{% endcomment %} - {% endblock %} - <!-- EXTRASTYLES --> - {% block extrastyle %}{% endblock %} - <!-- JAVASCRIPTS --> - {% block javascripts %} - <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "grappelli/" %}{% endfilter %}";</script> - <script type="text/javascript" charset="utf-8"> - // GLOBALS - var grappelli = {}, - ADMIN_URL = "{% url 'admin:index' %}", - MODEL_URL_ARRAY = {% get_content_types %}, - DATE_FORMAT = "{% get_date_format %}", - TIME_FORMAT = "{% get_time_format %}", - DATETIME_FORMAT = "{% get_datetime_format %}"; - </script> - <!-- jQuery, jQuery-UI --> - <script src="{% static "grappelli/jquery/jquery-1.7.2.min.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/jquery/ui/js/jquery-ui-1.8.18.custom.min.js" %}" type="text/javascript"></script> - {% if debug %} - <!-- Grappelli Main JS --> - <script src="{% static "grappelli/js/grappelli.js" %}" type="text/javascript"></script> - <!-- Grappelli jQuery Plugins, Widgets --> - <script src="{% static "grappelli/js/jquery.grp_collapsible.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_collapsible_group.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_timepicker.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_related_fk.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_related_m2m.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_related_generic.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_autocomplete_fk.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_autocomplete_m2m.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_autocomplete_generic.js" %}" type="text/javascript"></script> - <script src="{% static "grappelli/js/jquery.grp_inline.js" %}" type="text/javascript"></script> - {% else %} - <!-- Grappelli Minified --> - <script src="{% static "grappelli/js/grappelli.min.js" %}" type="text/javascript"></script> - {% endif %} - {% endblock %} - <!-- EXTRAHEAD --> - {% block extrahead %}{% endblock %} +<title>{% block title %}{% endblock %}</title> +<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" /> +{% block extrastyle %}{% endblock %} +<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]--> +{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %} +<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script> +{% block extrahead %}{% endblock %} +{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %} </head> -<body {%block onload%}{%endblock%} class="{% if is_popup %}grp-popup {% endif %}{% block bodyclass %}{% endblock %}"> - <div id="grp-container"> +{% load i18n %} - <!-- HEADER --> - <header id="grp-header" class="{% block header-class %}{% endblock %}"> - {% if not is_popup %} +<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"{% block onload %}{% endblock %}> - <!-- NAVIGATION --> - {% include "admin/includes_grappelli/header.html" %} - - <!-- CONTEXT NAVIGATION --> - <div id="grp-context-navigation"> - <nav id="grp-breadcrumbs" class="{% block breadcrumbs-class %}{% endblock %}"> - <header style="display:none"><h1>Breadcrumbs</h1></header> - {% block breadcrumbs %} - <ul> - <li><a href="/">{% trans 'Home' %}</a></li> - {% if title %} - <li> › {{ title }}</li> - {% endif %} - </ul> - {% endblock %} - </nav> - <nav id="grp-page-tools"> - <header style="display:none"><h1>Page Tools</h1></header> - {% block page-tools %}{% endblock %} - </nav> - </div> - {% endif %} - </header> +<!-- Container --> +<div id="container"> - <!-- CONTENT --> - <article id="grp-content" class="{% block content-class %}{% endblock %}"> - - <!-- MESSAGES --> - {% if messages %} - <ul class="grp-messagelist"> - {% for message in messages %} - <li{% if message.tags %} class="grp-{{ message.tags }}"{% endif %}>{{ message }}</li> - {% endfor %} - </ul> - {% endif %} + {% if not is_popup %} + <!-- Header --> + <div id="header"> + <div id="branding"> + {% block branding %}{% endblock %} + </div> + {% if user.is_active and user.is_staff %} + <div id="user-tools"> + {% trans 'Welcome,' %} + <strong>{% filter force_escape %}{% firstof user.get_short_name user.get_username %}{% endfilter %}</strong>. + {% block userlinks %} + {% url 'django-admindocs-docroot' as docsroot %} + {% if docsroot %} + <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / + {% endif %} + {% if user.has_usable_password %} + <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> / + {% endif %} + <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a> + {% endblock %} + </div> + {% endif %} + {% block nav-global %}{% endblock %} + </div> + <!-- END Header --> + {% block breadcrumbs %} + <div class="breadcrumbs"> + <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> + {% if title %} › {{ title }}{% endif %} + </div> + {% endblock %} + {% endif %} - <!-- CONTENT TITLE --> - <header id="grp-content-title"> - {% block pretitle %}{% endblock %} - {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} - {% block object-tools %}{% endblock %} - </header> + {% block messages %} + {% if messages %} + <ul class="messagelist">{% for message in messages %} + <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> + {% endfor %}</ul> + {% endif %} + {% endblock messages %} - <!-- CONTENT-CONTAINER --> - <div id="grp-content-container"> - {% block content %} - {{ content }} - {% block filters %}{% endblock %} - {% endblock %} - </div> + <!-- Content --> + <div id="content" class="{% block coltype %}colM{% endblock %}"> + {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} + {% block content %} + {% block object-tools %}{% endblock %} + {{ content }} + {% endblock %} + {% block sidebar %}{% endblock %} + <br class="clear" /> + </div> + <!-- END Content --> - </article> - - <!-- FOOTER --> - {% block footer %}{% endblock %} + {% block footer %}<div id="footer"></div>{% endblock %} +</div> +<!-- END Container --> - </div> </body> </html> |