Adjustments for initial public launch of OpenCloud
[plstackapi.git] / planetstack / templates / admin / base.html
1 {% 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 %}  {%if title %} {{ title }} | {% endif %} {{ '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   <link rel="shortcut icon" href="{% static 'favicon.png' %}">
21
22 </head>
23 {% load i18n %}
24
25 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
26
27 <!-- Sticky footer wrap -->
28 <div id="wrap">
29
30   <!-- Container -->
31   {% block container %}
32     <div id="container">
33
34       {% block header %}
35         {% if not is_popup %}
36           <!-- Header -->
37           <div id="header" class="header">
38             
39             <div id="branding">
40               <table width="100%">
41                 <tr>
42                   <td width="70%">
43              <!-- <a href="{% url 'admin:index' %}"><h1 id="site-name">{% block branding %}{{ 'ADMIN_NAME'|suit_conf }}{% endblock %}</h1></a>-->
44              <a href="{% url 'admin:index' %}"><h1 id="site-name"><img src="{% static 'open-cloud-themed.png' %}"/></h1></a>
45              </td>
46               <td width="30%">
47                   {% block quick-search %}
48                 {% with 'SEARCH_URL'|suit_conf as search_url %}
49                   {% if search_url %}
50                     <form class="form-search nav-quick-search" autocomplete="off" action="{% if '/' in search_url %}{{ search_url }}{% else %}{% url search_url %}{% endif %}" method="GET">
51                       <i class="input-icon icon-search"></i>
52                       <input type="text" name="q" class="input-medium search-query" id="quick-search">
53                       <input type="submit" class="submit" value="">
54                     </form>
55                   {% endif %}
56                 {% endwith %}
57               {% endblock %}
58                  </td>
59                </tr>
60              </table>
61             </div>
62           
63             {% block header_time %}
64             <div id="branding2">
65             <!--<div class="header-content header-content-first">
66               <div class="header-column icon">
67                 <i class="icon-time"></i>
68               </div>
69               <div class="header-column">
70                 <span class="date"> {% suit_date %}</span><br>
71                 <span class="time" id="clock">{% suit_time %}</span>
72               </div>
73             </div>-->
74           
75             {% endblock %}
76
77             {% block header_content %}
78               <!--<div class="header-content">
79                 <div class="header-column icon">
80                   <i class="icon-comment"></i>
81                 </div>
82                 <div class="header-column">
83                   <a href="" class="grey"><b>2</b> new messages</a>
84                 </div>
85               </div>-->
86             {% endblock %}
87
88             {% if user.is_active and user.is_staff %}
89               <div id="user-tools">
90                 {% trans 'Welcome,' %}
91                 <strong>
92                   {% filter force_escape %}
93                     {% firstof user.first_name user.username %}{% endfilter %}</strong>.
94                 <span class="user-links">
95                 {% block userlinks %}
96                   {% url 'django-admindocs-docroot' as docsroot %}
97                   {% if docsroot %}
98                     <a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
99                    <span class="separator">|</span>
100                   {% endif %}
101                   <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a>
102                   <span class="separator">|</span>
103                   <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
104                   </span>
105                 {% endblock %}
106               </div>
107             {% endif %}
108
109             {% block nav-global %}{% endblock %}
110
111           </div>
112            </div>
113         {% endif %}
114         <!-- END Header -->
115       {% endblock %}
116
117
118       <div class="suit-columns {{ is_popup|yesno:'one-column,two-columns' }}">
119
120         {% block content-center %}
121           <div id="suit-center" class="suit-column">
122
123             {% if not is_popup %}
124               {% block breadcrumbs %}
125                 <ul class="breadcrumb"> 
126                   <li><a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
127                     {% if title %}
128                       <span class="divider">&raquo;</span>
129                       </li>
130                       <li class="active">
131                       {{ title }}
132                     {% endif %}
133                     </li>
134                 </ul>
135               {% endblock %}
136                <label class="nodetextbox" >Active Nodes: </label>
137               <label class="nodelabel" >37</label>
138               <label class="nodetextbox">CPU Utilization: </label>
139               <label class="nodelabel" >12%</label>
140             <label class="nodetextbox">Bytes Transferred:</label>     
141               <label class="nodelabel" style="width:60px;">4321GB</label>
142             {% endif %}
143
144             {% block messages %}
145               {% if messages %}
146
147                 {% for message in messages %}
148                   <div class="alert alert-{% firstof message.tags 'info' %}">
149                     <button class="close" data-dismiss="alert">×</button>
150                     <strong>
151                       {% if message.tags %}{{ message.tags|capfirst }}{% else %}
152                         Message{% endif %}!</strong>
153                     {{ message }}
154                   </div>
155                 {% endfor %}
156               {% endif %}
157             {% endblock messages %}
158
159             <!-- Content -->
160             <div id="content" class="{% block coltype %}colM{% endblock %} row-fluid">
161               {% block pretitle %}{% endblock %}
162               {% block content_title %}{% if title %}
163                 <h2 class="content-title">{{ title }}</h2>
164               {% endif %}{% endblock %}
165               {% block content %}
166                 {% block object-tools %}{% endblock %}
167                 {{ content }}
168               {% endblock %}
169               {% block sidebar_content %}
170                 {% block sidebar %}{% endblock %}
171               {% endblock %}
172             </div>
173             <!-- END Content -->
174           </div>
175         {% endblock %}
176
177
178         {% block content-left %}
179           {% if not is_popup %}
180             <div id="suit-left" class="suit-column">
181          
182
183               {% include 'suit/menu.html' %}
184
185             </div>
186           {% endif %}
187         {% endblock %}
188
189       </div>
190     </div>
191   {% endblock %}
192
193   {% if not is_popup %}
194   <!-- Sticky footer push -->
195   <div id="push"></div>
196   {% endif %}
197
198 </div>
199
200 {% block footer %}
201   {% if not is_popup %}
202   <div id="footer" class="footer">
203     <div class="content">
204       <div class="tools">
205         {% block footer_links %}
206           <a href="http://djangosuit.com/support/" target="_blank" class="icon"><i class="icon-question-sign"></i>Support</a>
207           <a href="http://djangosuit.com/pricing/" target="_blank" class="icon"><i class="icon-bookmark"></i>Licence</a>
208           <a href="http://github.com/darklow/django-suit/issues" target="_blank" class="icon"><i class="icon-comment"></i>Report a bug</a>
209         {% endblock %}
210       </div>
211
212       <div class="copyright">
213         {% block copyright %}
214           Copyright &copy; 2013 DjangoSuit.com<br>Developed by <a href="http://djangosuit.com" target="_blank">DjangoSuit.com</a>
215         {% endblock %}
216       </div>
217
218       <div class="branding">{% block footer_branding %}
219         {% with 'ADMIN_NAME'|suit_conf as admin_name %}
220           {{ admin_name }}
221           {% if admin_name == 'Django Suit' %}
222             v{{ 'VERSION'|suit_conf }}
223           {% endif %}
224         {% endwith %}
225       {% endblock %}</div>
226     </div>
227   </div>
228   {% endif %}
229 {% endblock %}
230
231   <script src="{% static 'suit/bootstrap/js/bootstrap.min.js' %}"></script>
232   <script src="{% static 'suit/js/suit.js' %}"></script>
233   {% block extrajs %}{% endblock %}
234
235 </body>
236 </html>