Този сайт работи по-добре с JavaScript.
Начало
Каталог
Помощ
Вход
adrianshort
/
apollo
огледало от
https://github.com/adrianshort/apollo.git
Наблюдаван
1
Харесван
0
Разклонения
0
Код
Задачи
0
Версии
0
Уики
Activity
Преглед на файлове
Use new lat/lon attributes; add table header
master
Adrian Short
преди 12 години
родител
44e5e17a17
ревизия
cc5a1c0103
променени са
1 файла
, в които са
добавени 11
реда и са
изтрити 2
реда
Разделен изглед
Diff Options
Показване на статистика
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")
Пиши
Преглед
Зареждане…
Отказ
Запис