app/soc/templates/soc/organization/home.html
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 02 Jun 2009 19:23:06 +0200
changeset 2383 6ca37aa4c33e
parent 2271 6519029b444f
child 2389 4bfa82f58f4a
permissions -rw-r--r--
Temporary turn off GMaps support on Organization home pages until it's fixed. Currently not all markers and polyline connections between students and mentors show up.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2121
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/presence/home.html" %}
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    15
2271
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    16
{% block scripts %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    17
{{ block.super }}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    18
{% if gmaps_api_key %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    19
	<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={{ gmaps_api_key }}" type="text/javascript"></script>
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    20
	<script type="text/javascript" src="/soc/content/js/map-090420.js"></script>
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    21
{% endif %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    22
{% endblock %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    23
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    24
{% block body_tag %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    25
  {% if gmaps_api_key %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    26
    <body onLoad="org_home_gmap.map_load({{ org_map_data }})" onunload="GUnload()">
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    27
  {% else %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    28
    {{ block.super }}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    29
  {% endif %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    30
{% endblock %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    31
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    32
{% block instructions %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    33
{{ block.super }}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    34
{% if not gmaps_api_key %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    35
<br /><span class="error">Google Maps API key not present.
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    36
Please insert your key in <a href="/site/edit">Site Settings</a>, Google Maps field.
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    37
</span>
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    38
{% endif %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    39
{% endblock %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    40
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    41
{% block home_extras %}
2383
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    42
{% comment %}
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    43
{{ org_map_data }}
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    44
{% for list_number in list.lists %}
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    45
<p>
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    46
  {% include list.nextList %}
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    47
</p>
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    48
{% endfor %}
6ca37aa4c33e Temporary turn off GMaps support on Organization home pages until it's fixed.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2271
diff changeset
    49
{% endcomment %}
2271
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    50
<div id="org_home_extras">
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    51
 <div id="extras_left">
2121
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    52
  {% for list_number in list.lists %}
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    53
  <p>
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    54
    {% include list.nextList %}
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    55
  </p>
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    56
  {% endfor %}
2271
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    57
 </div>
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    58
 <div id="extras_right"> 
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    59
  {% if gmaps_api_key %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    60
    <div id="org_home_map"></div>
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    61
  {% endif %}
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    62
 </div>
6519029b444f Added map of accepted student proposals to mentors to the org home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2121
diff changeset
    63
</div>
2121
4f6344dfab28 Added list of projects to the organization home page.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    64
{% endblock %}