]> git.openstreetmap.org Git - rails.git/blob - app/views/map_bugs/get_bugs.xml.builder
Escape javascript in output
[rails.git] / app / views / map_bugs / get_bugs.xml.builder
1 xml.instruct!
2
3
4 xml.gpx("version" => "1.1", 
5         "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
6             "xsi:schemaLocation" => "http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd") do
7
8         for bug in @bugs
9       xml.wpt("lon" => bug.lon, "lat" => bug.lat) do
10                 xml.desc do
11                         xml.cdata! bug.flatten_comment("<hr />")
12                 end
13                 xml.extension do
14                         if bug.status = "open"
15                                 xml.closed "0"
16                         else
17                                 xml.closed "1"
18                         end
19                         xml.id bug.id
20                 end
21       end
22         end
23 end