This website works better with JavaScript.
首頁
探索
說明
登入
adrianshort
/
apollo
镜像来自
https://github.com/adrianshort/apollo.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Use new lat/lon attributes; add table header
master
Adrian Short
12 年之前
父節點
44e5e17a17
當前提交
cc5a1c0103
共有
1 個文件被更改
,包括
11 次插入
和
2 次删除
分割檢視
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
查看文件
@@ -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…
取消
儲存