From 0f50d1f61e9f1c66256307af02b0f2de018b0c28 Mon Sep 17 00:00:00 2001 From: CharlotteGilhooly Date: Tue, 14 Aug 2012 14:38:33 +0100 Subject: [PATCH] Replaced lat/lng with Google Maps link --- app/views/feeds/show.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/feeds/show.html.haml b/app/views/feeds/show.html.haml index 47e981b..c5a71ab 100644 --- a/app/views/feeds/show.html.haml +++ b/app/views/feeds/show.html.haml @@ -26,8 +26,7 @@ - @feed.posts.each do |p| %tr %td= link_to p.title, p.url - %td= p.loc['lat'] - %td= p.loc['lng'] + %td= link_to "Map", "https://maps.google.co.uk/maps?q=%s,%s&hl=en&z=18" % [ p.loc['lat'], p.loc['lng'] ], :target => "_blank" %td - unless p.published.nil? = p.published.strftime("%d %b %Y %H:%M")