1 xml.note("lon" => note.lon, "lat" => note.lat) do
3 xml.url note_url(note, :format => params[:format])
6 xml.reopen_url reopen_note_url(note, :format => params[:format])
8 xml.comment_url comment_note_url(note, :format => params[:format])
9 xml.close_url close_note_url(note, :format => params[:format])
12 xml.date_created note.created_at
13 xml.status note.status
16 xml.date_closed note.closed_at
20 note.comments.each do |comment|
22 xml.date comment.created_at
25 xml.uid comment.author.id
26 xml.user comment.author.display_name
27 xml.user_url user_url(:display_name => comment.author.display_name, :host => SERVER_URL)
30 xml.action comment.event
33 xml.text comment.body.to_text
34 xml.html comment.body.to_html