PageRenderTime 3ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 57ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 110 lines | 81 code | 21 blank | 8 comment | 0 complexity | 6a049a531041a629fd71812013afa1d4 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}" 
  3% if LANGUAGE_BIDI:
  4dir="rtl"
  5% endif
  6>
  7<%namespace name="admin" module="django.contrib.admin.templatetags.adminmedia" />
  8<%!
  9import django.core.urlresolvers as resolvers
 10%>
 11<head>
 12<%def name="block_title()">Undefined</%def>
 13<title>${self.block_title()}</title>
 14<%def name="block_stylesheet()">${admin_media_prefix()}css/base.css</%def>
 15<%def name="block_stylesheet_rtl()">${admin_media_prefix()}css/rtl.css</%def>
 16<link rel="stylesheet" type="text/css" href="${self.block_stylesheet()}" />
 17<link rel="stylesheet" type="text/css" href="${next.block_stylesheet()}" />
 18  
 19<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]--> 
 20% if LANGUAGE_BIDI:
 21<link rel="stylesheet" type="text/css" href="${self.block_stylesheet_rtl()}<%def name="block_stylesheet_rtl()">${admin_media_prefix()}css/rtl.css</%def>" />
 22% endif
 23<script type="text/javascript">window.__admin_media_prefix__ = "${ escapejs( admin_media_prefix() ) }";</script>
 24<!-- STYLES -->
 25${self.block_extrastyle()}<%def name="block_extrastyle()"></%def>
 26${self.block_extrahead()}<%def name="block_extrahead()"></%def>
 27${self.block_blockbots()}<%def name="block_blockbots()"><meta name="bang" content="pop"/><meta name="robots" content="NONE,NOARCHIVE" /></%def>
 28</head>
 29
 30
 31<body class="
 32% if is_popup:
 33popup 
 34% endif
 35${self.block_bodyclass()}<%def name="block_bodyclass()"></%def>">
 36
 37<!-- Container -->
 38<div id="container">
 39
 40    
 41% if not is_popup:
 42
 43    <!-- Header -->
 44    <div id="header">
 45        <div id="branding">
 46        ${self.block_branding()}<%def name="block_branding()"></%def>
 47        </div>
 48        
 49% if user.is_active and user.is_staff:
 50
 51        <div id="user-tools">${ trans('Welcome,') } <strong>
 52% if user.first_name:
 53${ force_escape(user.first_name)}
 54% else:
 55${ force_escape(user.username)}
 56% endif
 57</strong>. ${self.block_userlinks()}<%def name="block_userlinks()"><% docsroot = url(django_admindocs_docroot) %>
 58% if docsroot:
 59<a href="${docsroot}">${trans('Documentation')}</a> / 
 60% endif
 61<a href="${ (root_path+'password_change/') if not resolvers.reverse('admin:password_change') else resolvers.reverse('admin:password_change') }">${trans('Change password')}</a> / <a href="${ (root_path+'logout/') if not resolvers.reverse('admin:logout') else resolvers.reverse('admin:logout') }">${trans('Log out')}</a></%def></div>
 62        
 63% endif
 64
 65        ${self.block_nav_global()}<%def name="block_nav_global()"></%def>
 66    </div>
 67    <!-- END Header -->
 68    ${self.block_breadcrumbs()}<%def name="block_breadcrumbs()"><div class="breadcrumbs"><a href="/">${trans('Home')}</a>
 69% if title:
 70 &rsaquo; ${title}
 71% endif
 72</div></%def>
 73    
 74% endif
 75
 76
 77        
 78% if messages:
 79
 80        <ul class="messagelist">
 81% for message in messages:
 82<li>${message}</li>
 83% endfor
 84</ul>
 85        
 86% endif
 87
 88
 89    <!-- Content -->
 90    <div id="content" class="${self.block_coltype()}<%def name="block_coltype()">colM</%def>">
 91        ${self.block_pretitle()}<%def name="block_pretitle()"></%def>
 92        ${self.block_content_title()}<%def name="block_content_title()">
 93% if title:
 94<h1>${title}</h1>
 95% endif
 96</%def>
 97        <%def name="block_content()">
 98        <%def name="block_object_tools()"></%def>${block_object_tools()}
 99        </%def>${self.block_content()}
100        <%def name="block_sidebar()"></%def>${self.block_sidebar()}
101        <br class="clear" />
102    </div>
103    <!-- END Content -->
104
105    ${self.block_footer()}<%def name="block_footer()"><div id="footer"></div></%def>
106</div>
107<!-- END Container -->
108
109</body>
110</html>