Browse Source

Use new lat and lon attributes

master
Adrian Short 11 years ago
parent
commit
e3950bb614
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/feeds/show.html.haml

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

@@ -28,7 +28,7 @@
- @posts.each do |p| - @posts.each do |p|
%tr %tr
%td= link_to p.title, p.url %td= link_to p.title, p.url
%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= link_to "Map", "https://maps.google.co.uk/maps?q=%s,%s&hl=en&z=18" % [ p.lat, p.lon ], :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