Rename soc-090421.css and update base.html template.
[Melange.git] / app / soc / templates / soc / base.html
blobfdc6e586c345a724929373b35c7fb291dedb330c
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-090602.css" type="text/css"/>
20 <!--[if IE]>
21 <link rel="stylesheet" href="/soc/content/css/soc-090418-ie.css" type="text/css"/>
22 <![endif]-->
24 {% if uses_jq_autocomplete %}
25 <link rel="stylesheet" href="/soc/content/css/jquery-autocomplete-090304.css" type="text/css"/>
26 {% endif %}
27 {% if uses_jq_thickbox %}
28 <link rel="stylesheet" href="/soc/content/css/jquery-thickbox-090304.css" type="text/css"/>
29 {% endif %}
30 {% if uses_jq_purr %}
31 <link rel="stylesheet" href="/soc/content/css/jquery-purr-090308.css" type="text/css"/>
32 {% endif %}
33 {% if uses_jq_datetimepicker %}
34 <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/css/ui.datetimepicker-090304.css">
35 {% endif %}
36 {% endblock %}
37 <title>
38 {% block page_title %}
39 {% if page_name %}
40 {{ page_name }}
41 {% else %}
42 &lt;Missing Page Name&gt;
43 {% endif %}
44 {% endblock %}
45 </title>
47 {% block scripts %}
48 {% if uses_jq %}
49 {% if is_local %}
50 <script type='text/javascript' src="/jquery/jquery-1.2.6.js"></script>
51 {% else %}
52 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
53 {% endif %}
54 {% endif %}
55 {% if uses_json %}
56 <script type='text/javascript' src="/json/json2.js"></script>
57 {% endif %}
58 {% if uses_menu %}
59 <script type='text/javascript' src="/soc/content/js/menu-081108.js"></script>
60 {% endif %}
61 {% if uses_jq_purr %}
62 <script type='text/javascript' src="/jquery/jquery-purr.js"></script>
63 {% endif %}
64 {% if uses_jq_spin %}
65 <script type='text/javascript' src="/jquery/jquery-spin-1.0.2.js"></script>
66 {% endif %}
67 {% if uses_jq_bgiframe %}
68 <script type='text/javascript' src='/jquery/jquery-bgiframe.js'></script>
69 {% endif %}
70 {% if uses_jq_ajaqQueue %}
71 <script type='text/javascript' src='/jquery/jquery-ajaxQueue.js'></script>
72 {% endif %}
73 {% if uses_jq_autocomplete %}
74 <script type='text/javascript' src='/jquery/jquery-autocomplete.js'></script>
75 {% endif %}
76 {% if uses_jq_thickbox %}
77 <script type='text/javascript' src='/jquery/jquery-thickbox.js'></script>
78 {% endif %}
79 {% if uses_tinymce %}
80 <script type="text/javascript" src="/tiny_mce/tiny_mce.js"></script>
81 {% endif %}
82 {% if uses_jq_progressbar %}
83 <script type="text/javascript" src="/jquery/jquery-progressbar.js"></script>
84 {% endif %}
85 {% if uses_bulk_review %}
86 <script type="text/javascript" src="/soc/content/js/bulk-review-090304.js"></script>
87 {% endif %}
88 {% if uses_jq_ui_core %}
89 <script type="text/javascript" src="/jquery/jquery-ui.core.js"></script>
90 {% endif %}
91 {% if uses_jq_datetimepicker %}
92 <script type="text/javascript" src="/jquery/jquery-ui.datetimepicker.js"></script>
93 <script type="text/javascript" src="/soc/content/js/datetime-loader-090304.js"></script>
94 <script type="text/javascript" src="/soc/content/js/datetimepicker-090304.js"></script>
95 {% endif %}
96 {% if uses_slot_allocator %}
97 <script type="text/javascript" src="/soc/content/js/slot-allocator-090320.js"></script>
98 {% endif %}
99 {% if uses_duplicates %}
100 <script type="text/javascript" src="/soc/content/js/duplicate-slots-090505.js"></script>
101 {% endif %}
102 </head>
103 {% endblock %}
105 {% block body_tag %}
106 <body>
107 {% endblock %}
109 <div id="login">
110 {% block login_links %}
111 {% if account %}
112 <b>{{ account.email }} ({{ account.nickname }})</b> |
113 {% endif %}
114 {% if is_admin %}
115 Developer |
116 {% endif %}
117 {% if is_debug %}
118 Debug Mode |
119 {% endif %}
120 {% if is_local %}
121 <form id="flush_form" action="/_ah/admin/memcache" method="post" style="display: inline;">
122 <input type="submit" class="button" name="action:flush" value="Flush Cache"/>
123 </form> |
124 <a class="novisit" target="_blank" href="/_ah/admin">Admin</a> |
125 {% endif %}
126 <a class="novisit" href="http://code.google.com/p/soc/issues/list">Report bugs</a> |
127 {% if account %}
128 <a class="novisit" href="{{sign_out}}">Sign out</a>
129 {% else %}
130 <a class="novisit" href="{{sign_in}}">Sign in</a>
131 {% endif %}
132 {% endblock %}
133 </div>
135 <div id="notice">
136 {% if site_notice %}
137 <table align="center">
138 <tr>
139 <td>
140 <div class="notice">
141 <div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
142 <div style="padding: 5px 10px;"><b>{{ site_notice|safe }}</b></div>
143 </div></div></div></div>
144 </div>
145 <td>
146 </tr>
147 </table>
148 {% endif %}
149 </div>
151 <div id="header">
152 <div id="logo">
153 {% block logo %}
154 {% comment %}
155 TODO: logo updated in site sponsor interface
156 {% endcomment %}
157 <a href="/"><img src="/soc/content/images/gospo-logo.png" alt="{{ site_name }}"/></a>
158 {% endblock %}
159 </div>
161 <div id="title">
162 {% block header_title %}
163 {% if page_name %}
164 {% comment %}
165 TODO(tlarsen): replace this with breadcrumbs
166 {% endcomment %}
167 {{ page_name }}
168 {% else %}
169 &lt;Missing Page Name&gt;
170 {% endif %}
171 {% endblock %}
172 </div>
173 <div id="breadcrumbs">
174 {% block breadcrumbs %}{% endblock %}
175 </div>
177 {% block notice %}
178 <div id="notice">
179 {% if notice %}
180 <table align="center">
181 <tr>
182 <td>
183 <div class="notice">
184 <div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
185 <div style="padding: 5px 10px;"><b>{{ notice }}</b></div>
186 </div></div></div></div>
187 </div>
188 <td>
189 </tr>
190 </table>
191 {% endif %}
192 </div>
193 {% endblock %}
195 </div>
197 <div id="side" dir="ltr">
198 <div id="menu">
199 {% block sidebar_menu %}
200 <ul>
201 <li>
202 <a class="selected" href="/">
203 {% block sidebar_menu_title %}
204 {{ site_name }}
205 {% endblock %}
206 </a>
207 {% if sidebar_menu_items %}
208 {% include 'soc/sidebar/sidebar.html' %}
209 {% endif %}
210 </li>
211 </ul>
212 {% endblock %}
213 </div>
215 <div id="badge">
216 {% block badge %}
217 <a href="http://code.google.com/p/soc/"
218 ><img src="/soc/content/images/melange-logo.jpg" alt="Powered by Melange"/></a>
219 <br>
220 {% if soc_release %}
221 <a href="http://code.google.com/p/soc/source/browse/tags/{{ soc_release }}"
222 target="_blank">Release {{ soc_release }}</a>
223 {% else %}
224 <a href="http://code.google.com/p/soc/source/browse/trunk"
225 target="_blank">(unreleased)</a>
226 {% endif %}
227 {% endblock %}
228 </div>
229 </div>
231 <div id="body">
233 {% if uses_jq_purr %}
234 <div id="purr-container"></div>
235 {% endif %}
237 <div style="line-height: 140%;">
238 {% block body %}
239 {% if body_content %}
240 {{ body_content|safe }}
241 {% else %}
242 &lt;Missing Page Body&gt;
243 {% endif %}
244 {% endblock %}
245 </div>
246 <div id="footer" dir="ltr">
247 <div class="text">
248 {% block footer %}
249 &copy;2009 Google -
250 <a href="http://www.google.com/">Google Home</a> -
251 <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
252 <a href="http://code.google.com/appengine/terms.html">Google App Engine Terms of Service</a> -
253 Version {{ gae_version }}
254 {% endblock %}
255 </div>
256 </div>
257 </div>
258 {% if ga_tracking_num %}
259 {% include 'soc/site/ga.html' %}
260 {% endif %}
261 </body>
262 </html>