]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/_note.gpx.builder
Improve date display in user notes list
[rails.git] / app / views / notes / _note.gpx.builder
1 xml.wpt("lon" => note.lon, "lat" => note.lat) do
2   xml.desc do
3     xml.cdata! render(:partial => "description", :object => note, :formats => [ :html ])
4   end
5
6   xml.extension do
7     if note.status = "open"
8       xml.closed "0"
9     else
10       xml.closed "1"
11     end
12
13     xml.id note.id
14     xml.url note_url(note, :format => params[:format])
15     xml.comment_url comment_note_url(note, :format => params[:format])
16     xml.close_url close_note_url(note, :format => params[:format])
17   end
18 end