Improve formatting of note descriptions in GPX and RSS responses
[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