1 # frozen_string_literal: true
3 xml.wpt("lon" => note.lon, "lat" => note.lat) do
4 xml.time note.created_at.to_fs(:iso8601)
5 xml.name t("notes.show.title", :id => note.id)
8 xml.cdata! render(:partial => "description", :object => note, :formats => [:html])
11 xml.link("href" => note_url(note, :only_path => false))
15 xml.url api_note_url(note, :format => params[:format])
18 xml.reopen_url reopen_api_note_url(note, :format => params[:format])
20 xml.comment_url comment_api_note_url(note, :format => params[:format])
21 xml.close_url close_api_note_url(note, :format => params[:format])
24 xml.date_created note.created_at
25 xml.status note.status
27 xml.date_closed note.closed_at if note.closed?