X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/52611a5bfa69165179bd871b925b5f8b14942e2e..d74d4f8d195673250c3f2e841d28f185d74d8849:/app/views/notes/_note.gpx.builder diff --git a/app/views/notes/_note.gpx.builder b/app/views/notes/_note.gpx.builder index 22d9283ef..b6d085536 100644 --- a/app/views/notes/_note.gpx.builder +++ b/app/views/notes/_note.gpx.builder @@ -12,7 +12,12 @@ xml.wpt("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 end end