From 73a1dde8bb01395076054908cc9daed8db87a397 Mon Sep 17 00:00:00 2001 From: Allan LeSage Date: Fri, 5 Aug 2011 13:00:32 -0500 Subject: [PATCH] Removed JS map-hiding for no latLng, template hides instead; enlarged map; some JS-includes. --- media/chipy/css/google_maps.css | 9 ++------- media/chipy/js/venue_location.js | 5 ----- templates/meetings/meeting_block.html | 8 ++------ templates/meetings/past_index.html | 4 ++++ 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/media/chipy/css/google_maps.css b/media/chipy/css/google_maps.css index 3963968..dc5b151 100644 --- a/media/chipy/css/google_maps.css +++ b/media/chipy/css/google_maps.css @@ -7,16 +7,11 @@ div#map_canvas { } div.tiny_map { - height: 120px; - width: 120px; + height: 192px; + width: 256px; } div.s div.tiny_map { float: right; } -div.google_map { - float: right; - height: 192px; - width: 256px; -} diff --git a/media/chipy/js/venue_location.js b/media/chipy/js/venue_location.js index ca578bb..679f5b9 100644 --- a/media/chipy/js/venue_location.js +++ b/media/chipy/js/venue_location.js @@ -14,11 +14,6 @@ function drawMapThumb(mapdiv,venueLatLng,label) { }; // make the map pop - // This belongs in CSS usually, but a failed map - // degrades gracefully if you change style/class in JS. - mapdiv.style.float = 'right'; - mapdiv.style.height = '120px'; - mapdiv.style.width = '120px'; var mapCanvas = new google.maps.Map(mapdiv, mapOpts); var markerOpts = { map: mapCanvas, diff --git a/templates/meetings/meeting_block.html b/templates/meetings/meeting_block.html index 037f8fe..f2d2051 100644 --- a/templates/meetings/meeting_block.html +++ b/templates/meetings/meeting_block.html @@ -39,7 +39,6 @@ {% if meetings %} {% block head_extra_stylesheets %} - {% endblock %} @@ -54,20 +53,17 @@

ChiPy {{meeting.which}} Meeting

-

When: {{meeting.when|date:"l F jS Y P"}}

-

Where: {{meeting.venue.name}} {{meeting.venue.address|safe}} {{meeting.venue.phone}}

-
- {% if meeting.venue.jsonLatLng %} +
+ + + + {% endblock %}