5 json.coordinates [ note.lon, note.lat ]
10 json.url note_url(note, :format => params[:format])
13 json.reopen_url reopen_note_url(note, :format => params[:format])
15 json.comment_url comment_note_url(note, :format => params[:format])
16 json.close_url close_note_url(note, :format => params[:format])
19 json.date_created note.created_at
20 json.status note.status
21 json.closed_at note.closed_at if note.closed?
23 json.comments(note.comments) do |comment|
24 json.date comment.created_at
27 json.uid comment.author.id
28 json.user comment.author.display_name
29 json.user_url user_url(:display_name => comment.author.display_name, :only_path => false)
32 json.action comment.event
35 json.text comment.body.to_text
36 json.html comment.body.to_html