X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/898cc828dd1f1167f85abbf35c8e3f0ed640ac1e..d74d4f8d195673250c3f2e841d28f185d74d8849:/app/views/notes/_note.xml.builder diff --git a/app/views/notes/_note.xml.builder b/app/views/notes/_note.xml.builder index 259f70405..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 @@ -18,7 +24,7 @@ xml.note("lon" => note.lon, "lat" => note.lat) do if comment.author xml.uid comment.author.id xml.user comment.author.display_name - xml.user_url user_url(:display_name => comment.author.display_name) + xml.user_url user_url(:display_name => comment.author.display_name, :host => SERVER_URL) end if comment.body