diff options
author | luxagraf <sng@luxagraf.net> | 2012-10-14 22:26:39 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-10-14 22:26:39 -0400 |
commit | fa869d1a60ff6f8c41cd7f2bf0e0964bff9ba9f1 (patch) | |
tree | f60ab325dbaf6a4dab443daa3f8fea84edba4a1d /design/templates/archives | |
parent | 27e05eaae0dd829090749facc5e10ca0a7b9a5dc (diff) |
converted publishing system to have buttons int the admin and reworked the config system
Diffstat (limited to 'design/templates/archives')
-rw-r--r-- | design/templates/archives/homepage.html | 2 | ||||
-rw-r--r-- | design/templates/archives/map.html | 29 |
2 files changed, 23 insertions, 8 deletions
diff --git a/design/templates/archives/homepage.html b/design/templates/archives/homepage.html index 11cbf4b..56b7f57 100644 --- a/design/templates/archives/homepage.html +++ b/design/templates/archives/homepage.html @@ -24,7 +24,7 @@ </section>{%endcomment%} <section class="home harchive"> <h1 class="sh">From the Archive</h1> - {% include 'includes/recent_entries.html' %} + {%comment%} {% include 'includes/recent_entries.html' %}{%endcomment%} </section> {% endblock %} diff --git a/design/templates/archives/map.html b/design/templates/archives/map.html index effe150..3c644eb 100644 --- a/design/templates/archives/map.html +++ b/design/templates/archives/map.html @@ -2,7 +2,6 @@ {% load typogrify %} {% load truncateletters %} {% load slugify_under %} - {% block pagetitle %}Luxagraf | Map and Trips{% endblock %} {% block metadescription %}Browse luxagraf by map, see trip routes and discover essays and dispatches from around the world{% endblock %} @@ -12,17 +11,13 @@ Google Maps code {% block extrahead %} <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> -<script type="text/javascript" src="{{MEDIA_URL}}js/mainmap.js"></script> +<script type="text/javascript" src="{{MEDIA_URL}}js/mainmap.min.js"></script> {% endblock %} {%block bodyid%}id="map" {%endblock%} {% block bodyevents %}onload="initialize()"{% endblock %} - - - - {% block primary %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <li><a href="/" itemprop="url" title="luxagraf homepage"><span itemprop="title">Home</span></a> →</li> <li>Map</li> @@ -30,6 +25,26 @@ Google Maps code <section> <h1 class="hide">Browse luxagraf by map</h1> <div id="map-canvas"></div> - {% include 'includes/map_sidebar.html' %} + <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> </section> {% endblock %} |