summaryrefslogtreecommitdiff
path: root/design/templates/archives/map.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/archives/map.html')
-rw-r--r--design/templates/archives/map.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/design/templates/archives/map.html b/design/templates/archives/map.html
index a40e977..8195e6d 100644
--- a/design/templates/archives/map.html
+++ b/design/templates/archives/map.html
@@ -29,9 +29,9 @@ Google Maps code
<div class="map-legend">
<h4>Trips</h4>
<ul>
- {% for route in route_list %}
+ {% for r in route_list %}{%for route in r %}
<li><a onclick="showRoute('{{route.template_var_name}}', {{route.zoom}}, '{{route.geometry.centroid.y}}','{{route.geometry.centroid.x}}');" href="#" title="show {{route.name}} on map">{{route.name}}</a></li>
- {% endfor %}
+ {% endfor %}{% endfor %}
</ul>
<h4>Regions</h4>
<ul>
@@ -42,15 +42,16 @@ Google Maps code
<h4>Countries</h4>
<ul>
<li><a onclick="focusCountry(19.311143,2.460938,2);" href="#" title="view all countries">All</a></li>
- {%for country in country_list %}
+ {%for c in country_list %}
+ {% for country in c %}
<li><a href="#{{country.slug}}" onclick="focusCountry({{country.lat}}, {{country.lon}}, {{country.zoom_level}});" title="See all writing from {{country.name|title}}">{{country.name}}</a></li>
{% endfor %}
+ {% endfor %}
</ul>
</div>
- </section>
{% endblock %}
{% block js %}
<!--<script type="text/javascript" src="/media/js/mainmap.js"></script>-->
-<script type="text/javascript" src="/media/js/mainmap.min.js"></script>
+<script type="text/javascript" src="/media/js/mainmap.js"></script>
{% endblock%}