Enable the map that shows the connections between mentors and students.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 01 Aug 2009 10:07:08 +0200
changeset 2699 3b11f9c24d65
parent 2698 5783338b2c8d
child 2700 40cf7eaa032e
Enable the map that shows the connections between mentors and students.
app/soc/templates/soc/organization/home.html
app/soc/views/models/organization.py
--- a/app/soc/templates/soc/organization/home.html	Fri Jul 31 18:29:09 2009 +0200
+++ b/app/soc/templates/soc/organization/home.html	Sat Aug 01 10:07:08 2009 +0200
@@ -49,10 +49,8 @@
     {% include list.nextList %}
   </p>
   {% endfor %}
-{% comment %}
  {% if gmaps_api_key %}
    <div id="org_home_map"></div>
  {% endif %}
-{% endcomment %}
 </div>
 {% endblock %}
--- a/app/soc/views/models/organization.py	Fri Jul 31 18:29:09 2009 +0200
+++ b/app/soc/views/models/organization.py	Sat Aug 01 10:07:08 2009 +0200
@@ -496,10 +496,8 @@
         people[student_key_name]['projects'].append(project_key_name)
 
     # combine the people and projects data into one JSON object
-    data = {}
-    # TODO: to enable map data uncomment the piece of code below
-    #data = {'people': people,
-    #        'projects': projects}
+    data = {'people': people,
+            'projects': projects}
 
     return simplejson.dumps(data)