]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/_note.gpx.builder
Send 5% of users tiles over https as a test
[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     xml.id note.id
8     xml.url note_url(note, :format => params[:format])
9
10     if note.closed?
11       xml.reopen_url reopen_note_url(note, :format => params[:format])
12     else
13       xml.comment_url comment_note_url(note, :format => params[:format])
14       xml.close_url close_note_url(note, :format => params[:format])
15     end
16
17     xml.date_created note.created_at
18     xml.status note.status
19
20     if note.closed?
21       xml.date_closed note.closed_at
22     end
23   end
24 end