author | Todd Larsen <tlarsen@google.com> |
Sat, 07 Feb 2009 00:37:28 +0000 | |
changeset 1235 | 41cb87ed9b81 |
parent 1215 | b21e40ef8dad |
child 1298 | a04ab9bd300a |
permissions | -rw-r--r-- |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
1 |
{% comment %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
2 |
Licensed under the Apache License, Version 2.0 (the "License"); |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
3 |
you may not use this file except in compliance with the License. |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
4 |
You may obtain a copy of the License at |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
5 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
6 |
http://www.apache.org/licenses/LICENSE-2.0 |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
7 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
8 |
Unless required by applicable law or agreed to in writing, software |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
9 |
distributed under the License is distributed on an "AS IS" BASIS, |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
10 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
11 |
See the License for the specific language governing permissions and |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
12 |
limitations under the License. |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
13 |
{% endcomment %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
14 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
15 |
<html> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
16 |
<head> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
17 |
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
18 |
{% block stylesheet %} |
838
58da949dd64c
Set notice width to 450px. It was way too long. Notice is displayed with help text on yellow background in User profile.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
806
diff
changeset
|
19 |
<link rel="stylesheet" href="/soc/content/css/soc-090120.css" type="text/css"/> |
1235
41cb87ed9b81
Name .js and .css files more consistently with those previously present.
Todd Larsen <tlarsen@google.com>
parents:
1215
diff
changeset
|
20 |
<link rel="stylesheet" href="/soc/content/css/jquery-autocomplete.css" type="text/css"/> |
41cb87ed9b81
Name .js and .css files more consistently with those previously present.
Todd Larsen <tlarsen@google.com>
parents:
1215
diff
changeset
|
21 |
<link rel="stylesheet" href="/soc/content/css/jquery-thickbox.css" type="text/css"/> |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
22 |
{% endblock %} |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
23 |
<title> |
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
24 |
{% block page_title %} |
482
839740b061ad
Factor out direct use of the page object
Sverre Rabbelier <srabbelier@gmail.com>
parents:
472
diff
changeset
|
25 |
{% if page_name %} |
839740b061ad
Factor out direct use of the page object
Sverre Rabbelier <srabbelier@gmail.com>
parents:
472
diff
changeset
|
26 |
{{ page_name }} |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
27 |
{% else %} |
482
839740b061ad
Factor out direct use of the page object
Sverre Rabbelier <srabbelier@gmail.com>
parents:
472
diff
changeset
|
28 |
<Missing Page Name> |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
29 |
{% endif %} |
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
30 |
{% endblock %} |
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
31 |
</title> |
423
25665d645fa8
Add javascript expandable menus.
Augie Fackler <durin42@gmail.com>
parents:
411
diff
changeset
|
32 |
<script src="/jquery/jquery-1.2.6.js"></script> |
426
114fe0f840c8
Add tooltips style display of help_text, instead of widening the form with
Todd Larsen <tlarsen@google.com>
parents:
423
diff
changeset
|
33 |
<script src="/jquery/jquery-bt-0.7.js"></script> |
449
a4dc4c9e7356
Allowing + and - to be clicked in the menu
Dmitri Gaskin <dmitrig01@gmail.com>
parents:
445
diff
changeset
|
34 |
<script src="/soc/content/js/menu-081108.js"></script> |
426
114fe0f840c8
Add tooltips style display of help_text, instead of widening the form with
Todd Larsen <tlarsen@google.com>
parents:
423
diff
changeset
|
35 |
<script src="/soc/content/js/tips-081027.js"></script> |
1235
41cb87ed9b81
Name .js and .css files more consistently with those previously present.
Todd Larsen <tlarsen@google.com>
parents:
1215
diff
changeset
|
36 |
<script type='text/javascript' src='/jquery/jquery-bgiframe.js'></script> |
41cb87ed9b81
Name .js and .css files more consistently with those previously present.
Todd Larsen <tlarsen@google.com>
parents:
1215
diff
changeset
|
37 |
<script type='text/javascript' src='/jquery/jquery-ajaxQueue.js'></script> |
41cb87ed9b81
Name .js and .css files more consistently with those previously present.
Todd Larsen <tlarsen@google.com>
parents:
1215
diff
changeset
|
38 |
<script type='text/javascript' src='/jquery/jquery-autocomplete.js'></script> |
1215
b21e40ef8dad
Hook up the new jquery plugins in base.html and _as_table_row.html
Sverre Rabbelier <srabbelier@gmail.com>
parents:
1050
diff
changeset
|
39 |
<script type='text/javascript' src='/jquery/jquery-thickbox.js'></script> |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
40 |
{% block scripts %}{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
41 |
</head> |
1050
77aab03aa693
Add 'Flush Cache' button next to Admin link. It's visible only when working on dev_appserver locally. This is a quick way of flushing memcache.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
838
diff
changeset
|
42 |
{% block body_tag %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
43 |
<body> |
1050
77aab03aa693
Add 'Flush Cache' button next to Admin link. It's visible only when working on dev_appserver locally. This is a quick way of flushing memcache.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
838
diff
changeset
|
44 |
{% endblock %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
45 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
46 |
<div id="login"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
47 |
{% block login_links %} |
485
2865922ea06a
Change id to account in base.html template (without this change we couldn't signout using top right links and also couldn't display currently logged in account information on the left side of links). This patch is related to commit in revision r1022.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
482
diff
changeset
|
48 |
{% if account %} |
2865922ea06a
Change id to account in base.html template (without this change we couldn't signout using top right links and also couldn't display currently logged in account information on the left side of links). This patch is related to commit in revision r1022.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
482
diff
changeset
|
49 |
<b>{{ account.email }} ({{ account.nickname }})</b> | |
83
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
50 |
{% endif %} |
118
d2e61a490969
Clean up User Model and User profile edit view now that soc.logic.site.id_user
Todd Larsen <tlarsen@google.com>
parents:
99
diff
changeset
|
51 |
{% if is_debug %} |
1050
77aab03aa693
Add 'Flush Cache' button next to Admin link. It's visible only when working on dev_appserver locally. This is a quick way of flushing memcache.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
838
diff
changeset
|
52 |
<form id="flush_form" action="/_ah/admin/memcache" method="post" style="display: inline;"> |
77aab03aa693
Add 'Flush Cache' button next to Admin link. It's visible only when working on dev_appserver locally. This is a quick way of flushing memcache.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
838
diff
changeset
|
53 |
<input type="submit" class="button" name="action:flush" value="Flush Cache" onclick="return confirm('Are you sure you want to flush all keys from the cache?');"/> |
77aab03aa693
Add 'Flush Cache' button next to Admin link. It's visible only when working on dev_appserver locally. This is a quick way of flushing memcache.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
838
diff
changeset
|
54 |
</form> | |
83
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
55 |
<a class="novisit" target="_blank" href="/_ah/admin">Admin</a> | |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
56 |
{% endif %} |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
57 |
<a class="novisit" href="http://code.google.com/p/soc/issues/list">Report bugs</a> | |
485
2865922ea06a
Change id to account in base.html template (without this change we couldn't signout using top right links and also couldn't display currently logged in account information on the left side of links). This patch is related to commit in revision r1022.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
482
diff
changeset
|
58 |
{% if account %} |
83
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
59 |
<a class="novisit" href="{{sign_out}}">Sign out</a> |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
60 |
{% else %} |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
61 |
<a class="novisit" href="{{sign_in}}">Sign in</a> |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
62 |
{% endif %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
63 |
{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
64 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
65 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
66 |
<div id="header"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
67 |
<div id="logo"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
68 |
{% block logo %} |
341 | 69 |
<a href="/"><img src="/soc/content/images/gospo-logo.png" alt="Google Open Source Programs"/></a> |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
70 |
<span title=" TODO: logo updated in site sponsor interface " class="popup"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
71 |
<small>*</small> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
72 |
</span> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
73 |
{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
74 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
75 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
76 |
<div id="title"> |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
77 |
{% block header_title %} |
482
839740b061ad
Factor out direct use of the page object
Sverre Rabbelier <srabbelier@gmail.com>
parents:
472
diff
changeset
|
78 |
{% if page_name %} |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
79 |
{% comment %} |
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
80 |
TODO(tlarsen): replace this with breadcrumbs |
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
81 |
{% endcomment %} |
482
839740b061ad
Factor out direct use of the page object
Sverre Rabbelier <srabbelier@gmail.com>
parents:
472
diff
changeset
|
82 |
{{ page_name }} |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
83 |
{% else %} |
482
839740b061ad
Factor out direct use of the page object
Sverre Rabbelier <srabbelier@gmail.com>
parents:
472
diff
changeset
|
84 |
<Missing Page Name> |
374
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
85 |
{% endif %} |
9363b9dc2983
Add the Page object to the context of each view. Update templates to make
Todd Larsen <tlarsen@google.com>
parents:
341
diff
changeset
|
86 |
{% endblock %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
87 |
</div> |
83
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
88 |
<div id="breadcrumbs"> |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
89 |
{% block breadcrumbs %}{% endblock %} |
3f4f7c540b75
Created response helper respond() function that is used to generate base templates and it's child templates (handles sign in/out links, user name etc).
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
79
diff
changeset
|
90 |
</div> |
327
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
91 |
|
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
92 |
{% block notice %} |
289
1b63d17d5b62
Add notification bar block in base.html template.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
200
diff
changeset
|
93 |
<div id="notice"> |
327
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
94 |
{% if notice %} |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
95 |
<table align="center"> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
96 |
<tr> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
97 |
<td> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
98 |
<div class="notice"> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
99 |
<div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr"> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
100 |
<div style="padding: 5px 10px;"><b>{{ notice }}</b></div> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
101 |
</div></div></div></div> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
102 |
</div> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
103 |
<td> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
104 |
</tr> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
105 |
</table> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
106 |
{% endif %} |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
107 |
</div> |
629cc34e37bf
Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
289
diff
changeset
|
108 |
{% endblock %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
109 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
110 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
111 |
<div id="side" dir="ltr"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
112 |
<div id="menu"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
113 |
{% block sidebar_menu %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
114 |
<ul> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
115 |
<li> |
141
e120c24b89e2
Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
118
diff
changeset
|
116 |
<a class="selected" href="/"> |
e120c24b89e2
Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
118
diff
changeset
|
117 |
{% block sidebar_menu_title %} |
e120c24b89e2
Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
118
diff
changeset
|
118 |
Google Open Source Programs |
e120c24b89e2
Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
118
diff
changeset
|
119 |
{% endblock %} |
e120c24b89e2
Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
118
diff
changeset
|
120 |
</a> |
493
6976c4d8d0ac
Refactor the sidebar to use Django templates
Sverre Rabbelier <srabbelier@gmail.com>
parents:
485
diff
changeset
|
121 |
{% if sidebar_menu_items %} |
6976c4d8d0ac
Refactor the sidebar to use Django templates
Sverre Rabbelier <srabbelier@gmail.com>
parents:
485
diff
changeset
|
122 |
{% include 'soc/sidebar/sidebar.html' %} |
141
e120c24b89e2
Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
118
diff
changeset
|
123 |
{% endif %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
124 |
</li> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
125 |
</ul> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
126 |
{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
127 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
128 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
129 |
<div id="badge"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
130 |
{% block badge %} |
578
0f34318f5693
Add release tag string, Melange "badge" image, and Google App Engine version
Todd Larsen <tlarsen@google.com>
parents:
534
diff
changeset
|
131 |
<a href="http://code.google.com/p/soc/" |
0f34318f5693
Add release tag string, Melange "badge" image, and Google App Engine version
Todd Larsen <tlarsen@google.com>
parents:
534
diff
changeset
|
132 |
><img src="/soc/content/images/melange-logo.jpg" alt="Powered by Melange"/></a> |
0f34318f5693
Add release tag string, Melange "badge" image, and Google App Engine version
Todd Larsen <tlarsen@google.com>
parents:
534
diff
changeset
|
133 |
<br> |
579
9d727910cab2
Display '(unreleased)' as a link to trunk/ when RELEASE_TAG is false.
Todd Larsen <tlarsen@google.com>
parents:
578
diff
changeset
|
134 |
{% if soc_release %} |
578
0f34318f5693
Add release tag string, Melange "badge" image, and Google App Engine version
Todd Larsen <tlarsen@google.com>
parents:
534
diff
changeset
|
135 |
<a href="http://code.google.com/p/soc/source/browse/tags/{{ soc_release }}" |
579
9d727910cab2
Display '(unreleased)' as a link to trunk/ when RELEASE_TAG is false.
Todd Larsen <tlarsen@google.com>
parents:
578
diff
changeset
|
136 |
target="_blank">Release {{ soc_release }}</a> |
9d727910cab2
Display '(unreleased)' as a link to trunk/ when RELEASE_TAG is false.
Todd Larsen <tlarsen@google.com>
parents:
578
diff
changeset
|
137 |
{% else %} |
9d727910cab2
Display '(unreleased)' as a link to trunk/ when RELEASE_TAG is false.
Todd Larsen <tlarsen@google.com>
parents:
578
diff
changeset
|
138 |
<a href="http://code.google.com/p/soc/source/browse/trunk" |
9d727910cab2
Display '(unreleased)' as a link to trunk/ when RELEASE_TAG is false.
Todd Larsen <tlarsen@google.com>
parents:
578
diff
changeset
|
139 |
target="_blank">(unreleased)</a> |
9d727910cab2
Display '(unreleased)' as a link to trunk/ when RELEASE_TAG is false.
Todd Larsen <tlarsen@google.com>
parents:
578
diff
changeset
|
140 |
{% endif %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
141 |
{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
142 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
143 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
144 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
145 |
<div id="body"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
146 |
|
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
147 |
<div style="line-height: 140%;"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
148 |
{% block body %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
149 |
<p class="todo"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
150 |
This is generic HTML that can be configured via the site administration |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
151 |
interface. It is unclear if the site admin can be trusted and allowed to enter |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
152 |
any arbitrary HTML (more flexible and powerful) or if only a whitelist of "safe" |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
153 |
HTML tags should be permitted (to prevent XSS, etc.). |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
154 |
(<a href="http://www.feedparser.org/"><code>feedparser</code></a> is useful for |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
155 |
this and is written in Python, should whitelisting be necessary.) |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
156 |
</p> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
157 |
<p> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
158 |
Welcome to Google Open Source Programs, the home of |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
159 |
<a href="/program/gsoc2009/home">Google Summer of Code</a> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
160 |
and the |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
161 |
<a href="/program/ghop2008/home">Google Highly Open Participation</a> contest. |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
162 |
</p> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
163 |
<p class="todo"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
164 |
The site administration interface will provide a mechanism to select a feed to |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
165 |
be displayed here. |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
166 |
</p> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
167 |
{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
168 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
169 |
<div id="footer" dir="ltr"> |
411
c8ac5c1161e2
Addresses comments to r866.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
405
diff
changeset
|
170 |
{% if ga_tracking_num %} |
534
c31cfbf1a20f
Replace HomeSettings with Presence Model class. Replace SiteSettings with
Todd Larsen <tlarsen@google.com>
parents:
493
diff
changeset
|
171 |
{% include 'soc/site/ga.html' %} |
405
f3525c1288ed
Add Google Analytics support to Site Settings. The reason I created additional SettingsValidationForm is because you cannot inherit from Form that has already defined Meta class, so it's sort of workaround for that. I didn't want to have same validation functions in both Form classes.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
397
diff
changeset
|
172 |
{% endif %} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
173 |
<div class="text"> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
174 |
{% block footer %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
175 |
©2008 Google - |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
176 |
<a href="http://www.google.com/">Google Home</a> - |
578
0f34318f5693
Add release tag string, Melange "badge" image, and Google App Engine version
Todd Larsen <tlarsen@google.com>
parents:
534
diff
changeset
|
177 |
<a href="http://www.google.com/privacy.html">Privacy Policy</a> - |
806
7cc80b2c8479
Show Terms of Service link in footer if tos_link is defined in the context.
Todd Larsen <tlarsen@google.com>
parents:
579
diff
changeset
|
178 |
{% if tos_link %} |
7cc80b2c8479
Show Terms of Service link in footer if tos_link is defined in the context.
Todd Larsen <tlarsen@google.com>
parents:
579
diff
changeset
|
179 |
<a href="{{tos_link}}">Terms of Service</a> - |
7cc80b2c8479
Show Terms of Service link in footer if tos_link is defined in the context.
Todd Larsen <tlarsen@google.com>
parents:
579
diff
changeset
|
180 |
{% endif %} |
578
0f34318f5693
Add release tag string, Melange "badge" image, and Google App Engine version
Todd Larsen <tlarsen@google.com>
parents:
534
diff
changeset
|
181 |
Version {{ gae_version }} |
79
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
182 |
{% endblock %} |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
183 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
184 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
185 |
</div> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
186 |
</body> |
58001ec7720c
Home site templates and basic view.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff
changeset
|
187 |
</html> |