]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/index.gpx.builder
Tweaked cell padding
[rails.git] / app / views / notes / index.gpx.builder
index 7a30460274558f8525de58cd6cabca2c169c143f..58da357da5f6daa688ed27de65f333c2c83b9858 100644 (file)
@@ -1,7 +1,9 @@
 xml.instruct!
 
 xml.instruct!
 
-xml.gpx("version" => "1.1", 
+xml.gpx("version" => "1.1",
+        "creator" => "OpenStreetMap.org",
+        "xmlns" => "http://www.topografix.com/GPX/1/1",
         "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
         "xsi:schemaLocation" => "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd") do
         "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
         "xsi:schemaLocation" => "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd") do
-  xml << render(:partial => "note", :collection => @notes)
+  xml << (render(:partial => "note", :collection => @notes) || "")
 end
 end