8b599eb09eb1e52932616922cef9a5be2f95efe2
[rails.git] / app / views / note / _note.gpx.builder
1 xml.wpt("lon" => note.lon, "lat" => note.lat) do
2   with_format(:html) do
3     xml.desc do
4       xml.cdata! render(:partial => "description", :object => note, :format => :html)
5     end
6   end
7
8   xml.extension do
9     if note.status = "open"
10       xml.closed "0"
11     else
12       xml.closed "1"
13     end
14
15     xml.id note.id
16   end
17 end