]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_note.gpx.builder
Convert edit menus to bootstrap dropdown
[rails.git] / app / views / notes / _note.gpx.builder
index e6c3653941965041c022d5e63f1bb28b2d2d5ac5..a55ed88f6f5d767aed605e5077e57ec0909f19c2 100644 (file)
@@ -17,7 +17,7 @@ xml.wpt("lon" => note.lon, "lat" => note.lat) do
     xml.date_created note.created_at
     xml.status note.status
 
     xml.date_created note.created_at
     xml.status note.status
 
-    if note.status == "closed"
+    if note.closed?
       xml.date_closed note.closed_at
     end
   end
       xml.date_closed note.closed_at
     end
   end