This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
apollo
mirror of
https://github.com/adrianshort/apollo.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Use new lat/lon attributes; add table header
master
Adrian Short
12 years ago
parent
44e5e17a17
commit
cc5a1c0103
1 changed files
with
11 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-2
app/views/posts/near.html.haml
+ 11
- 2
app/views/posts/near.html.haml
View File
@@ -1,11 +1,20 @@
%h1 Posts#near
%table
%thead
%tr
%th
%th Latitude
%th Longitude
%th Distance (metres)
%th Published
%tbody
- @posts.each do |p|
%tr
%td= link_to p.title, p.url
%td= p.loc['lat']
%td= p.loc['lng']
%td= p.lat
%td= p.lon
%td= p.distance.to_i
%td
- unless p.published.nil?
= p.published.strftime("%d %b %Y %H:%M")
Write
Preview
Loading…
Cancel
Save