5                 xml.bug("lon" => bug.lon, "lat" => bug.lat) do
 
   7                         xml.date_created bug.date_created
 
   8                         xml.nearby bug.nearby_place
 
  10                         if bug.status == "closed"
 
  11                                 xml.date_closed bug.date_closed
 
  14                                 for comment in bug.map_bug_comment
 
  16                                                 xml.date comment.date_created
 
  17                                                 if !comment.commenter_id.nil?
 
  18                                                         xml.uid comment.commenter_id
 
  19                                                         xml.user comment.user.display_name      
 
  21                                                         xml.user comment.commenter_name
 
  23                                                 xml.text comment.comment