diff options
Diffstat (limited to 'design/templates/details')
-rw-r--r-- | design/templates/details/national-parks.html | 25 | ||||
-rw-r--r-- | design/templates/details/photo_galleries.html | 7 |
2 files changed, 23 insertions, 9 deletions
diff --git a/design/templates/details/national-parks.html b/design/templates/details/national-parks.html index e17bd72..2cd48eb 100644 --- a/design/templates/details/national-parks.html +++ b/design/templates/details/national-parks.html @@ -3,6 +3,25 @@ {% block pagetitle %}Luxagraf | Projects | National Parks {% endblock %} {% block metadescription %}{% endblock %} +{% block extrahead %} + <!--[if lte IE 8]> + <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.ie.css" /> + <![endif]--> + <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> + <script type="text/javascript"> + if (typeof L === "undefined") { + document.write(unescape("%3Cscript src='/media/js/leaflet-0.5/leaflet.js' type='text/javascript'%3E%3C/script%3E")); +} + </script> + + <style> + #map-canvas img{ border: none;} + </style> + + + + +{% endblock %} {%block bodyid%}id="projects-detail"{%endblock%} @@ -25,8 +44,8 @@ <ul class="buttons"> <li><a href="{{object.post.get_absolute_url}}" title="{{object.post.title}}">Read Journal</a></li> {%if object.gallery%}<li><a href="{{object.gallery.get_absolute_url}}" title="Photos of {{object.unit_name}}">View Photos</a></li>{%endif%} - <li><a href="#" class="map-link" title="{{object.mpoly.centroid.y}},{{object.mpoly.centroid.x}},{{object.zoom}},{{object.id}}">Map</a></li> - <li><a href="#" id="more-{{forloop.counter}}"class="more-link" title="More about {{object.unit_name}}">More</a></li> + <li><a href="#" class="map-link" data-latitude="{{object.mpoly.centroid.y}}" data-longitude="{{object.mpoly.centroid.x}}" data-zoom="{{object.zoom}}" data-id="{{object.id}}">Map</a></li> + <li><a href="#" id="more-{{forloop.counter}}" class="more-link" title="More about {{object.unit_name}}">More</a></li> </ul> <dl class="meta" style="visibility: hidden;"> <dt>Visited:</dt> @@ -46,8 +65,6 @@ {% endblock %} {% block js %} <script type="text/javascript" src="/media/js/jquery.js"></script> - <script type="text/javascript" src="/media/js/underscore-min.js"></script> <script type="text/javascript" src="/media/js/natparks.min.js" ></script> - <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> {% endblock %} diff --git a/design/templates/details/photo_galleries.html b/design/templates/details/photo_galleries.html index 4e8fdce..e0530ab 100644 --- a/design/templates/details/photo_galleries.html +++ b/design/templates/details/photo_galleries.html @@ -9,11 +9,10 @@ {% block metadescription %}{{object.set_desc|truncatewords:30|smartypants|safe}}{% endblock %} {% block extrahead %} - <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" /> <!--[if lte IE 8]> - <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" /> + <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.ie.css" /> <![endif]--> - <script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script> + <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <script type="text/javascript"> if (typeof L === "undefined") { document.write(unescape("%3Cscript src='/media/js/leaflet-0.5/leaflet.js' type='text/javascript'%3E%3C/script%3E")); @@ -83,8 +82,6 @@ {% block js %} <script type="text/javascript" src="{{MEDIA_URL}}js/jquery.js"></script> <script type="text/javascript" src="{{MEDIA_URL}}js/jquery.scrollTo-1.4.2-min.js"></script> - <!--<script type="text/javascript" src="{{MEDIA_URL}}js/photos.min.js" ></script>--> - <script type="text/javascript" src="/media/js/leaflet-providers.js"></script> <script type="text/javascript" src="/media/js/photos.min.js" ></script> |