/
base.html
218 lines (196 loc) · 8.81 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
{% comment %}
# This file is part of OpenHatch.
# Copyright (C) 2010 Parker Phinney
# Copyright (C) 2009 Karen Rustad
# Copyright (C) 2009, 2010, 2011 OpenHatch, Inc.
# Copyright (C) 2010 John Stumpo
# Copyright (C) 2011 Krzysztof Tarnowski (krzysztof.tarnowski@ymail.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% load base_extras %}
{% load assets %}
<!doctype html>
<html lang="en" dir="ltr">
<head>
{% block extra_head %}
{% endblock %}
<title>
{% block whole_title %}
OpenHatch - {% block title %}{% endblock %}
{% endblock whole_title %}
</title>
<link rel="shortcut icon" href="/favicon.ico" />
{% block canonical_link_tag %}
<link rel="canonical" href="https://openhatch.org{{ request.get_full_path }}" />
{% endblock canonical_link_tag %}
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<meta http-equiv='Content-Language' content='en-us' />
<meta name='Description' content='OpenHatch, the open source involvement engine.'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type='text/css'> /*<![CDATA[*/
{% block css %}
{% assets "openhatch_css" %}
@import url({{ ASSET_URL }});
{% endassets %}
{% comment %}
What follows are CSS declarations that use {% version %}. We can't
store these in static CSS files, naturally, because those files
aren't parsed by Django.
{% endcomment %}
body {
#landing a.blog-feed {
background-image:
url({% version '/static/images/base/landing/feed-icon-16x16-sprited.png' %}) }
.person {
font-size: 80%; }
.geocode {
font-size: 80%; }
body#profile #importer {
background-image:
url({% version '/static/images/ship.png' %}) }
body#profile #progressbar.working .ui-progressbar-value {
background-image:
url({% version '/static/css/jquery-ui-lightness/images/pbar-ani.gif' %}); }
body#profile .portfolio_entry > .actions li.save_and_publish_button *,
body#profile .portfolio_entry > .actions li.save_button * {
background-image:
url({% version '/static/images/icons/publish.png' %}); }
body#profile .portfolio_entry > .actions li.delete_portfolio_entry a {
background-image:
url({% version '/static/images/icons/delete.png' %}); }
body#profile .citations li .actions a.delete_citation {
background-image:
url({% version '/static/images/icons/delete-citation.png' %}); }
body#profile #portfolio.viewer .portfolio_entry .submodule {
background-image:
url({% version '/static/images/profile/portfolio/portfolio-entry-bg.png' %}) }
body#project #wannahelp-button {
background-image:
url({% version '/static/images/wannahelp-button-bg.png' %}); }
body#project #wannahelp-button:active {
background-image:
url({% version '/static/images/wannahelp-button-bg-active.png' %}); }
body#project #wannahelp-button:hover,
body#project #wannahelp-button:focus {
background-image:
url({% version '/static/images/wannahelp-button-bg-hover.png' %}); }
body#project #wannahelp-button:hover:active {
background-image:
url({% version '/static/images/wannahelp-button-bg-hover-active.png' %}); }
body#project .next_steps_for_helpers {
background-image:
url({% version '/static/images/bg-translucent-green.png' %}); }
#footer { background: #333 url('/static/images/dark-hatch.png') repeat; }
{% endblock css %}
/*]]>*/
</style>
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"
type="text/javascript"></script>
<![endif]-->
{% assets "header_js" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% block less %}
<link rel="stylesheet/less" type="text/css" href="{% version '/static/less/base/base.less' %}">
<link rel="stylesheet/less" type="text/css" href="{% version '/static/less/base/one_column.less' %}">
<link rel="stylesheet/less" type="text/css" href="{% version '/static/less/base/two_column.less' %}">
<link rel="stylesheet/less" type="text/css" href="{% version '/static/less/base/three_column.less' %}">
<link rel="stylesheet/less" type="text/css" href="{% version '/static/less/base/landing.less' %}">
{% endblock less %}
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script src="{% version '/static/js/less-1.3.0.min.js' %}" type="text/javascript"></script>
{% block js_in_head %}
{% endblock js_in_head %}
</head>
{% comment %} body_id is used by CSS to know what page we're on{% endcomment %}
<body id='{% block body_id %}body{% endblock %}' class='{% block body_class %}{% endblock %}'>
<div id="nav-container">
{% block nav %}
{% include 'base/nav.html' %}
{% endblock nav %}
</div>
<div id="container">
{% if notifications %}
<ul id='notifications'>
{% block notifications %}
{% for notification in notifications %}
<li class='alert' id='{{ notification.id }}'><div>{{ notification.text|safe }}</div></li>
{% endfor %}
{% endblock %}
</ul>
{% endif %}
<div id="pagetop">
{% block pagetop %}
{% endblock pagetop %}
</div>
<div id='content'>
{% block content %}
{% endblock content %}
</div><!-- /#content -->
</div><!-- /#container -->
</div>
<div id='footer-wrapper'>
<div id='footer'>
{% block footer %}
<div class="threecol">
<div class="column">
<h3>OpenHatch organization</h3>
<ul>
<li><a href="/about/">about openhatch</a></li>
<li><a href="/sponsors/">sponsors</a></li>
<li><a href="/blog/">blog</a></li>
<li><a href="/contact/">contact</a></li>
<li><a href="https://openhatch.org/wiki/Privacy_policy">privacy policy</a></li>
</ul>
</div>
<div class="column">
<h3>OpenHatch web app code</h3>
<ul>
<li><a href="http://openhatch.readthedocs.org/en/latest/README.html">Intro for developers</a></li>
<li><a href="https://github.com/openhatch/oh-mainline">Github (source code)</a></li>
<li><a href="http://lists.openhatch.org/mailman/listinfo/devel">Devel mailing list</a></li>
<li><a href="http://openhatch.readthedocs.org/">Code docs</a></li>
<li><a href="https://openhatch.org/bugs/">Bug tracker</a></li>
</ul>
</div>
<div class="column">
<h3>Other web tools</h3>
<ul>
<li><a href="/wiki/">wiki</a></li>
<li><a href="http://forum.openhatch.org/">forum</a></li>
</ul>
</div>
</div>
{% endblock footer %}
</div>
</div>
{% block js_before_bundle %}
{% endblock js_before_bundle %}
<!--Includes for the javascript bundle are in base/assets.py-->
{% assets "openhatch_js" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% block js %}
{% endblock js %}
{% if test_js %}
{% block js_tests %}
{% endblock js_tests %}
{% endif %}
{% block piwik_js %}
{% googleanalyticsjs %}
{% endblock %}
</body>
</html>