]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_note.gpx.builder
Add a reopen API call for notes
[rails.git] / app / views / notes / _note.gpx.builder
index 4b9aa9869234cf56f55e6b8cee0d20370e77ae8a..b6d0855368cd1f8113f18ce8c48fc6d3e3ce93f8 100644 (file)
@@ -11,5 +11,13 @@ xml.wpt("lon" => note.lon, "lat" => note.lat) do
     end
 
     xml.id note.id
     end
 
     xml.id note.id
+    xml.url 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
   end
 end