]> git.openstreetmap.org Git - rails.git/blob - app/views/map_bugs/read.xml.builder
Merge branch 'master' into openstreetbugs
[rails.git] / app / views / map_bugs / read.xml.builder
1 xml.instruct!
2
3 xml.bug("lon" => @bug.lon, "lat" => @bug.lat) do
4         xml.id @bug.id
5         xml.date_created @bug.date_created
6         xml.nearby @bug.nearby_place
7         xml.status @bug.status
8         if @bug.status == "closed"
9                 xml.date_closed @bug.date_closed
10         end
11         xml.comments do
12                 for comment in @bug.map_bug_comment
13                         xml.comment do
14                                 xml.date comment.date_created
15                                 if !comment.commenter_id.nil?
16                                         xml.uid comment.commenter_id
17                                         xml.user comment.user.display_name      
18                                 else
19                                         xml.user comment.commenter_name
20                                 end
21                                 xml.text comment.comment
22                         end     
23                 end
24         end
25 end