Browse Source

Replaced lat/lng with Google Maps link

master
CharlotteGilhooly 12 years ago
parent
commit
0f50d1f61e
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      app/views/feeds/show.html.haml

+ 1
- 2
app/views/feeds/show.html.haml View File

@@ -26,8 +26,7 @@
- @feed.posts.each do |p| - @feed.posts.each do |p|
%tr %tr
%td= link_to p.title, p.url %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 %td
- unless p.published.nil? - unless p.published.nil?
= p.published.strftime("%d %b %Y %H:%M") = p.published.strftime("%d %b %Y %H:%M")


Loading…
Cancel
Save