app/soc/templates/soc/organization/home.html
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 02 Aug 2009 23:45:42 +0200
changeset 2714 f1e2afcde89f
parent 2699 3b11f9c24d65
child 2801 0ee67cc9bd20
permissions -rw-r--r--
Fixed Org home view map to only appear when projects have been announced.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2696
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     1
{% extends "soc/presence/home.html" %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     2
{% comment %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     4
you may not use this file except in compliance with the License.
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     5
You may obtain a copy of the License at
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     6
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     8
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    12
See the License for the specific language governing permissions and
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    13
limitations under the License.
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    14
{% endcomment %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    15
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    16
{% block scripts %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    17
{{ block.super }}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    18
{% if gmaps_api_key %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    19
	<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={{ gmaps_api_key }}" type="text/javascript"></script>
2697
91f495e886f8 Renamed main CSS and map JS file due to recent changes.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2696
diff changeset
    20
	<script type="text/javascript" src="/soc/content/js/map-090730.js"></script>
2696
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    21
{% endif %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    22
{% endblock %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    23
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    24
{% block body_tag %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    25
  {% if gmaps_api_key %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    26
    <body onLoad="org_home_gmap.map_load({{ org_map_data }})" onunload="GUnload()">
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    27
  {% else %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    28
    {{ block.super }}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    29
  {% endif %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    30
{% endblock %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    31
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    32
{% block instructions %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    33
{{ block.super }}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    34
{% if not gmaps_api_key %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    35
<br /><span class="error">Google Maps API key not present.
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    36
Please insert your key in <a href="/site/edit">Site Settings</a>, Google Maps field.
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    37
</span>
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    38
{% endif %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    39
{% endblock %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    40
{% block home_extras %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    41
<div id="org_home_extras">
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    42
  {% for list_number in list.lists %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    43
  <p>
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    44
    {% include list.nextList %}
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    45
  </p>
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    46
  {% endfor %}
2714
f1e2afcde89f Fixed Org home view map to only appear when projects have been announced.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2699
diff changeset
    47
f1e2afcde89f Fixed Org home view map to only appear when projects have been announced.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2699
diff changeset
    48
  {% if gmaps_api_key and org_map_data %}
f1e2afcde89f Fixed Org home view map to only appear when projects have been announced.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2699
diff changeset
    49
    <div id="org_home_map"></div>
f1e2afcde89f Fixed Org home view map to only appear when projects have been announced.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2699
diff changeset
    50
  {% endif %}
2696
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    51
</div>
c76c9c5916bd Moved the student<->mentor map on the org home page below the list.
Mario Ferraro <fadinlight@gmail.com>
parents: 2389
diff changeset
    52
{% endblock %}