summaryrefslogtreecommitdiff
path: root/design/templates/bin/map_sidebar.html
blob: e61852f2ccbd649818353537be877bd01deeaff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% load truncateletters  %}{% load slugify_under  %}<div class="map-legend">
            <h4>Trips</h4>
            <ul>
                {% for route in route_list %}
                <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 %}
            </ul>
            <h4>Regions</h4>
            <ul>
            {%for region in region_list %}
                <li><a href="#{{region.slug}}" onclick="focusCountry({{region.lat}}, {{region.lon}}, {{region.zoom_level}});" title="See all writing from {{region.name|title}}">{{region.name}}</a></li>
            {% endfor %}
            </ul>
            
            <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 %}
                <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 %}
            </ul>
        
        </div>