Add date postfix to slot-allocator.js file. Update base.html template with path to...
[Melange.git] / app / soc / templates / soc / base.html
blobc4bc8cf5f47d54568fe8df9cf205ef6618bedaab
1 {% comment %}
2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
6 http://www.apache.org/licenses/LICENSE-2.0
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
13 {% endcomment %}
14 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
15 <html>
16 <head>
17 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
18 {% block stylesheet %}
19 <link rel="stylesheet" href="/soc/content/css/soc-090418.css" type="text/css"/>
20 {% if uses_jq_autocomplete %}
21 <link rel="stylesheet" href="/soc/content/css/jquery-autocomplete-090304.css" type="text/css"/>
22 {% endif %}
23 {% if uses_jq_thickbox %}
24 <link rel="stylesheet" href="/soc/content/css/jquery-thickbox-090304.css" type="text/css"/>
25 {% endif %}
26 {% if uses_jq_purr %}
27 <link rel="stylesheet" href="/soc/content/css/jquery-purr-090308.css" type="text/css"/>
28 {% endif %}
29 {% if uses_jq_datetimepicker %}
30 <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/css/ui.datetimepicker-090304.css">
31 {% endif %}
32 {% endblock %}
33 <title>
34 {% block page_title %}
35 {% if page_name %}
36 {{ page_name }}
37 {% else %}
38 &lt;Missing Page Name&gt;
39 {% endif %}
40 {% endblock %}
41 </title>
43 {% block scripts %}
44 {% if uses_jq %}
45 {% if is_local %}
46 <script type='text/javascript' src="/jquery/jquery-1.2.6.js"></script>
47 {% else %}
48 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
49 {% endif %}
50 {% endif %}
51 {% if uses_json %}
52 <script type='text/javascript' src="/json/json2.js"></script>
53 {% endif %}
54 {% if uses_jq_bt %}
55 <script type='text/javascript' src="/jquery/jquery-bt-0.7.js"></script>
56 {% endif %}
57 {% if uses_menu %}
58 <script type='text/javascript' src="/soc/content/js/menu-081108.js"></script>
59 {% endif %}
60 {% if uses_jq_purr %}
61 <script type='text/javascript' src="/jquery/jquery-purr.js"></script>
62 {% endif %}
63 {% if uses_jq_spin %}
64 <script type='text/javascript' src="/jquery/jquery-spin-1.0.2.js"></script>
65 {% endif %}
66 {% if uses_jq_bt %}
67 <script type='text/javascript' src="/soc/content/js/tips-081027.js"></script>
68 {% endif %}
69 {% if uses_jq_bgiframe %}
70 <script type='text/javascript' src='/jquery/jquery-bgiframe.js'></script>
71 {% endif %}
72 {% if uses_jq_ajaqQueue %}
73 <script type='text/javascript' src='/jquery/jquery-ajaxQueue.js'></script>
74 {% endif %}
75 {% if uses_jq_autocomplete %}
76 <script type='text/javascript' src='/jquery/jquery-autocomplete.js'></script>
77 {% endif %}
78 {% if uses_jq_thickbox %}
79 <script type='text/javascript' src='/jquery/jquery-thickbox.js'></script>
80 {% endif %}
81 {% if uses_tinymce %}
82 <script type="text/javascript" src="/tiny_mce/tiny_mce_src.js"></script>
83 {% endif %}
84 {% if uses_jq_progressbar %}
85 <script type="text/javascript" src="/jquery/jquery-progressbar.js"></script>
86 {% endif %}
87 {% if uses_bulk_review %}
88 <script type="text/javascript" src="/soc/content/js/bulk-review-090304.js"></script>
89 {% endif %}
90 {% if uses_jq_ui_core %}
91 <script type="text/javascript" src="/jquery/jquery-ui.core.js"></script>
92 {% endif %}
93 {% if uses_jq_datetimepicker %}
94 <script type="text/javascript" src="/jquery/jquery-ui.datetimepicker.js"></script>
95 <script type="text/javascript" src="/soc/content/js/datetime-loader-090304.js"></script>
96 <script type="text/javascript" src="/soc/content/js/datetimepicker-090304.js"></script>
97 {% endif %}
98 {% if uses_slot_allocator %}
99 <script type="text/javascript" src="/soc/content/js/slot-allocator-090320.js"></script>
100 {% endif %}
101 </head>
102 {% endblock %}
104 {% block body_tag %}
105 <body>
106 {% endblock %}
108 <div id="login">
109 {% block login_links %}
110 {% if account %}
111 <b>{{ account.email }} ({{ account.nickname }})</b> |
112 {% endif %}
113 {% if is_admin %}
114 Developer |
115 {% endif %}
116 {% if is_debug %}
117 Debug Mode |
118 {% endif %}
119 {% if is_local %}
120 <form id="flush_form" action="/_ah/admin/memcache" method="post" style="display: inline;">
121 <input type="submit" class="button" name="action:flush" value="Flush Cache"/>
122 </form> |
123 <a class="novisit" target="_blank" href="/_ah/admin">Admin</a> |
124 {% endif %}
125 <a class="novisit" href="http://code.google.com/p/soc/issues/list">Report bugs</a> |
126 {% if account %}
127 <a class="novisit" href="{{sign_out}}">Sign out</a>
128 {% else %}
129 <a class="novisit" href="{{sign_in}}">Sign in</a>
130 {% endif %}
131 {% endblock %}
132 </div>
134 <div id="notice">
135 {% if site_notice %}
136 <table align="center">
137 <tr>
138 <td>
139 <div class="notice">
140 <div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
141 <div style="padding: 5px 10px;"><b>{{ site_notice|safe }}</b></div>
142 </div></div></div></div>
143 </div>
144 <td>
145 </tr>
146 </table>
147 {% endif %}
148 </div>
150 <div id="header">
151 <div id="logo">
152 {% block logo %}
153 {% comment %}
154 TODO: logo updated in site sponsor interface
155 {% endcomment %}
156 <a href="/"><img src="/soc/content/images/gospo-logo.png" alt="{{ site_name }}"/></a>
157 {% endblock %}
158 </div>
160 <div id="title">
161 {% block header_title %}
162 {% if page_name %}
163 {% comment %}
164 TODO(tlarsen): replace this with breadcrumbs
165 {% endcomment %}
166 {{ page_name }}
167 {% else %}
168 &lt;Missing Page Name&gt;
169 {% endif %}
170 {% endblock %}
171 </div>
172 <div id="breadcrumbs">
173 {% block breadcrumbs %}{% endblock %}
174 </div>
176 {% block notice %}
177 <div id="notice">
178 {% if notice %}
179 <table align="center">
180 <tr>
181 <td>
182 <div class="notice">
183 <div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
184 <div style="padding: 5px 10px;"><b>{{ notice }}</b></div>
185 </div></div></div></div>
186 </div>
187 <td>
188 </tr>
189 </table>
190 {% endif %}
191 </div>
192 {% endblock %}
194 </div>
196 <div id="side" dir="ltr">
197 <div id="menu">
198 {% block sidebar_menu %}
199 <ul>
200 <li>
201 <a class="selected" href="/">
202 {% block sidebar_menu_title %}
203 {{ site_name }}
204 {% endblock %}
205 </a>
206 {% if sidebar_menu_items %}
207 {% include 'soc/sidebar/sidebar.html' %}
208 {% endif %}
209 </li>
210 </ul>
211 {% endblock %}
212 </div>
214 <div id="badge">
215 {% block badge %}
216 <a href="http://code.google.com/p/soc/"
217 ><img src="/soc/content/images/melange-logo.jpg" alt="Powered by Melange"/></a>
218 <br>
219 {% if soc_release %}
220 <a href="http://code.google.com/p/soc/source/browse/tags/{{ soc_release }}"
221 target="_blank">Release {{ soc_release }}</a>
222 {% else %}
223 <a href="http://code.google.com/p/soc/source/browse/trunk"
224 target="_blank">(unreleased)</a>
225 {% endif %}
226 {% endblock %}
227 </div>
228 </div>
230 <div id="body">
232 {% if uses_jq_purr %}
233 <div id="purr-container"></div>
234 {% endif %}
236 <div style="line-height: 140%;">
237 {% block body %}
238 {% if body_content %}
239 {{ body_content|safe }}
240 {% else %}
241 &lt;Missing Page Body&gt;
242 {% endif %}
243 {% endblock %}
244 </div>
245 <div id="footer" dir="ltr">
246 <div class="text">
247 {% block footer %}
248 &copy;2009 Google -
249 <a href="http://www.google.com/">Google Home</a> -
250 <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
251 <a href="http://code.google.com/appengine/terms.html">Google App Engine Terms of Service</a> -
252 Version {{ gae_version }}
253 {% endblock %}
254 </div>
255 </div>
256 </div>
257 {% if ga_tracking_num %}
258 {% include 'soc/site/ga.html' %}
259 {% endif %}
260 </body>
261 </html>