blob: 477e941acd291921b111bc7540db10692e8cb9de [file] [log] [blame]
Siobhan Tullybfd11dc2013-09-03 12:59:24 -04001{% load admin_static %}{% load suit_tags %}{% 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 %}{{ title }} | {{ 'ADMIN_NAME'|suit_conf }}{% endblock %}</title>
5 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% endblock %}"/>
6 <link rel="stylesheet" type="text/css" href="{% static 'suit/bootstrap/css/bootstrap.min.css' %}" media="all"/>
7 <link rel="stylesheet" type="text/css" href="{% static 'suit/css/suit.css' %}" media="all">
8 <link rel="stylesheet" type="text/css" href="{% static 'planetstack.css' %}" media="all">
9 {% block extrastyle %}{% endblock %}
10 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}"/>{% endif %}
11 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
12 <script src="{% static 'suit/js/jquery-1.8.3.min.js' %}"></script>
13 <script type="text/javascript">var Suit = { $: $.noConflict() }; if (!$) $ = Suit.$; </script>
14 {% if 'SHOW_REQUIRED_ASTERISK'|suit_conf %}
15 <style type="text/css">.required:after { content: '*'; margin: 0 0 0 5px; position: absolute; color: #ccc;}</style>
16 {% endif %}
17 {% block extrahead %}{% endblock %}
18 {% block blockbots %}
19 <meta name="robots" content="NONE,NOARCHIVE"/>{% endblock %}
20</head>
21{% load i18n %}
22
23<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
24
25<!-- Sticky footer wrap -->
26<div id="wrap">
27
28 <!-- Container -->
29 {% block container %}
30 <div id="container">
31
32 {% block header %}
33 {% if not is_popup %}
34 <!-- Header -->
35 <div id="header" class="header">
36 <div id="branding">
37 <a href="{% url 'admin:index' %}"><h1 id="site-name">{% block branding %}{{ 'ADMIN_NAME'|suit_conf }}{% endblock %}</h1></a>
38 </div>
39
40 {% block header_time %}
41 <div class="header-content header-content-first">
42 <div class="header-column icon">
43 <i class="icon-time"></i>
44 </div>
45 <div class="header-column">
46 <span class="date"> {% suit_date %}</span><br>
47 <span class="time" id="clock">{% suit_time %}</span>
48 </div>
49 </div>
50 {% endblock %}
51
52 {% block header_content %}
53 <!--<div class="header-content">
54 <div class="header-column icon">
55 <i class="icon-comment"></i>
56 </div>
57 <div class="header-column">
58 <a href="" class="grey"><b>2</b> new messages</a>
59 </div>
60 </div>-->
61 {% endblock %}
62
63 {% if user.is_active and user.is_staff %}
64 <div id="user-tools">
65 {% trans 'Welcome,' %}
66 <strong>
67 {% filter force_escape %}
68 {% firstof user.first_name user.username %}{% endfilter %}</strong>.
69 <span class="user-links">
70 {% block userlinks %}
71 {% url 'django-admindocs-docroot' as docsroot %}
72 {% if docsroot %}
73 <a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
74 <span class="separator">|</span>
75 {% endif %}
76 <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a>
77 <span class="separator">|</span>
78 <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
79 </span>
80 {% endblock %}
81 </div>
82 {% endif %}
83 {% block nav-global %}{% endblock %}
84 </div>
85 {% endif %}
86 <!-- END Header -->
87 {% endblock %}
88
89
90 <div class="suit-columns {{ is_popup|yesno:'one-column,two-columns' }}">
91
92 {% block content-center %}
93 <div id="suit-center" class="suit-column">
94
95 {% if not is_popup %}
96 {% block breadcrumbs %}
97 <ul class="breadcrumb">
98 <li><a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
99 {% if title %}
100 <span class="divider">&raquo;</span>
101 </li>
102 <li class="active">
103 {{ title }}
104 {% endif %}
105 </li>
106 </ul>
107 {% endblock %}
108 {% endif %}
109
110 {% block messages %}
111 {% if messages %}
112
113 {% for message in messages %}
114 <div class="alert alert-{% firstof message.tags 'info' %}">
115 <button class="close" data-dismiss="alert">×</button>
116 <strong>
117 {% if message.tags %}{{ message.tags|capfirst }}{% else %}
118 Message{% endif %}!</strong>
119 {{ message }}
120 </div>
121 {% endfor %}
122 {% endif %}
123 {% endblock messages %}
124
125 <!-- Content -->
126 <div id="content" class="{% block coltype %}colM{% endblock %} row-fluid">
127 {% block pretitle %}{% endblock %}
128 {% block content_title %}{% if title %}
129 <h2 class="content-title">{{ title }}</h2>
130 {% endif %}{% endblock %}
131 {% block content %}
132 {% block object-tools %}{% endblock %}
133 {{ content }}
134 {% endblock %}
135 {% block sidebar_content %}
136 {% block sidebar %}{% endblock %}
137 {% endblock %}
138 </div>
139 <!-- END Content -->
140 </div>
141 {% endblock %}
142
143
144 {% block content-left %}
145 {% if not is_popup %}
146 <div id="suit-left" class="suit-column">
147 {% block quick-search %}
148 {% with 'SEARCH_URL'|suit_conf as search_url %}
149 {% if search_url %}
150 <form class="form-search nav-quick-search" autocomplete="off" action="{% if '/' in search_url %}{{ search_url }}{% else %}{% url search_url %}{% endif %}" method="GET">
151 <input type="text" name="q" class="input-medium search-query" id="quick-search">
152 <i class="input-icon icon-search"></i>
153 <input type="submit" class="submit" value="">
154 </form>
155 {% endif %}
156 {% endwith %}
157 {% endblock %}
158
159 {% include 'suit/menu.html' %}
160
161 </div>
162 {% endif %}
163 {% endblock %}
164
165 </div>
166 </div>
167 {% endblock %}
168
169 {% if not is_popup %}
170 <!-- Sticky footer push -->
171 <div id="push"></div>
172 {% endif %}
173
174</div>
175
176{% block footer %}
177 {% if not is_popup %}
178 <div id="footer" class="footer">
179 <div class="content">
180 <div class="tools">
181 {% block footer_links %}
182 <a href="http://djangosuit.com/support/" target="_blank" class="icon"><i class="icon-question-sign"></i>Support</a>
183 <a href="http://djangosuit.com/pricing/" target="_blank" class="icon"><i class="icon-bookmark"></i>Licence</a>
184 <a href="http://github.com/darklow/django-suit/issues" target="_blank" class="icon"><i class="icon-comment"></i>Report a bug</a>
185 {% endblock %}
186 </div>
187
188 <div class="copyright">
189 {% block copyright %}
190 Copyright &copy; 2013 DjangoSuit.com<br>Developed by <a href="http://djangosuit.com" target="_blank">DjangoSuit.com</a>
191 {% endblock %}
192 </div>
193
194 <div class="branding">{% block footer_branding %}
195 {% with 'ADMIN_NAME'|suit_conf as admin_name %}
196 {{ admin_name }}
197 {% if admin_name == 'Django Suit' %}
198 v{{ 'VERSION'|suit_conf }}
199 {% endif %}
200 {% endwith %}
201 {% endblock %}</div>
202 </div>
203 </div>
204 {% endif %}
205{% endblock %}
206
207 <script src="{% static 'suit/bootstrap/js/bootstrap.min.js' %}"></script>
208 <script src="{% static 'suit/js/suit.js' %}"></script>
209 {% block extrajs %}{% endblock %}
210
211</body>
212</html>