X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/eac40b89af7f3a1c8b5bf6924640cf54a776e70b..d74d4f8d195673250c3f2e841d28f185d74d8849:/app/views/notes/_note.xml.builder diff --git a/app/views/notes/_note.xml.builder b/app/views/notes/_note.xml.builder index 1128f35eb..42e69fec2 100644 --- a/app/views/notes/_note.xml.builder +++ b/app/views/notes/_note.xml.builder @@ -1,8 +1,14 @@ xml.note("lon" => note.lon, "lat" => note.lat) do xml.id note.id xml.url note_url(note, :format => params[:format]) - xml.comment_url comment_note_url(note, :format => params[:format]) - xml.close_url close_note_url(note, :format => params[:format]) + + if note.closed? + xml.reopen_url reopen_note_url(note, :format => params[:format]) + else + xml.comment_url comment_note_url(note, :format => params[:format]) + xml.close_url close_note_url(note, :format => params[:format]) + end + xml.date_created note.created_at xml.status note.status