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
 
  15   xml.date_closed note.closed_at if note.closed?
 
  18     note.comments.each do |comment|
 
  20         xml.date comment.created_at
 
  23           xml.uid comment.author.id
 
  24           xml.user comment.author.display_name
 
  25           xml.user_url user_url(:display_name => comment.author.display_name, :only_path => false)
 
  28         xml.action comment.event
 
  31           xml.text comment.body.to_text
 
  32           xml.html comment.body.to_html