app/soc/templates/soc/organization/home.html
changeset 2271 6519029b444f
parent 2121 4f6344dfab28
child 2383 6ca37aa4c33e
equal deleted inserted replaced
2270:543f11d7b0e4 2271:6519029b444f
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12 See the License for the specific language governing permissions and
    12 See the License for the specific language governing permissions and
    13 limitations under the License.
    13 limitations under the License.
    14 {% endcomment %}
    14 {% endcomment %}
    15 
    15 
    16 {% block body %}
    16 {% block scripts %}
    17   {{ block.super }}
    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 %}
       
    23 
       
    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 %}
       
    31 
       
    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 
       
    41 {% block home_extras %}
       
    42 <div id="org_home_extras">
       
    43  <div id="extras_left">
    18   {% for list_number in list.lists %}
    44   {% for list_number in list.lists %}
    19   <p>
    45   <p>
    20     {% include list.nextList %}
    46     {% include list.nextList %}
    21   </p>
    47   </p>
    22   {% endfor %}
    48   {% endfor %}
       
    49  </div>
       
    50  <div id="extras_right"> 
       
    51   {% if gmaps_api_key %}
       
    52     <div id="org_home_map"></div>
       
    53   {% endif %}
       
    54  </div>
       
    55 </div>
    23 {% endblock %}
    56 {% endblock %}