Comment out GMaps support in Organization home page template.
[Melange.git] / app / soc / templates / soc / organization / home.html
blob819c0b6381904bec6eaa9257a946c84d3c9c6e2c
1 {% extends "soc/presence/home.html" %}
2 {% comment %}
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
7 http://www.apache.org/licenses/LICENSE-2.0
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 {% endcomment %}
16 {% block scripts %}
17 {{ block.super }}
18 {% if gmaps_api_key %}
19 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={{ gmaps_api_key }}" type="text/javascript"></script>
20 <script type="text/javascript" src="/soc/content/js/map-090420.js"></script>
21 {% endif %}
22 {% endblock %}
24 {% block body_tag %}
25 {% if gmaps_api_key %}
26 <body onLoad="org_home_gmap.map_load({{ org_map_data }})" onunload="GUnload()">
27 {% else %}
28 {{ block.super }}
29 {% endif %}
30 {% endblock %}
32 {% block instructions %}
33 {{ block.super }}
34 {% if not gmaps_api_key %}
35 <br /><span class="error">Google Maps API key not present.
36 Please insert your key in <a href="/site/edit">Site Settings</a>, Google Maps field.
37 </span>
38 {% endif %}
39 {% endblock %}
40 {% block home_extras %}
41 {% for list_number in list.lists %}
42 <p>
43 {% include list.nextList %}
44 </p>
45 {% endfor %}
46 {% comment %}
47 <div id="org_home_extras">
48 <div id="extras_left">
49 {% for list_number in list.lists %}
50 <p>
51 {% include list.nextList %}
52 </p>
53 {% endfor %}
54 </div>
55 <div id="extras_right">
56 {% if gmaps_api_key %}
57 <div id="org_home_map"></div>
58 {% endif %}
59 </div>
60 </div>
61 {% endcomment %}
62 {% endblock %}