]> git.openstreetmap.org Git - rails.git/blob - app/views/map_bugs/_bug.xml.builder
Merge branch 'master' into openstreetbugs
[rails.git] / app / views / map_bugs / _bug.xml.builder
1 xml.bug("lon" => bug.lon, "lat" => bug.lat) do
2   xml.id bug.id
3   xml.date_created bug.created_at
4   xml.nearby bug.nearby_place
5   xml.status bug.status
6
7   if bug.status == "closed"
8     xml.date_closed bug.closed_at
9   end
10
11   xml.comments do
12     bug.comments.each do |comment|
13       xml.comment do
14         xml.date comment.created_at
15         xml.uid comment.author_id unless comment.author_id.nil?
16         xml.user comment.author_name
17         xml.text comment.body
18       end       
19     end
20   end
21 end