]> git.openstreetmap.org Git - rails.git/blob - app/views/map_bugs/_bug.xml.builder
Make sure the ruby quadtile code give the same result as the C version
[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.comments.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