a25a588a2460b2426455ea72883556fa7b99d5b2
[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.date_created
4   xml.nearby bug.nearby_place
5   xml.status bug.status
6
7   if bug.status == "closed"
8     xml.date_closed bug.date_closed
9   end
10
11   xml.comments do
12     bug.map_bug_comment.each do |comment|
13       xml.comment do
14         xml.date comment.date_created
15         xml.uid comment.commenter_id unless comment.commenter_id.nil?
16         xml.user comment.commenter_name
17         xml.text comment.comment
18       end       
19     end
20   end
21 end