X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/af68e07272f2f42a581b435dc0563fe8a862a562..6cb69b5e4be820b3f30d0f9eef9bbeb39fab5231:/app/views/map_bugs/read.xml.builder?ds=sidebyside diff --git a/app/views/map_bugs/read.xml.builder b/app/views/map_bugs/read.xml.builder index f9d7ddaa1..82fe04c4b 100644 --- a/app/views/map_bugs/read.xml.builder +++ b/app/views/map_bugs/read.xml.builder @@ -1,25 +1,3 @@ xml.instruct! -xml.bug("lon" => @bug.lon, "lat" => @bug.lat) do - xml.id @bug.id - xml.date_created @bug.date_created - xml.nearby @bug.nearby_place - xml.status @bug.status - if @bug.status == "closed" - xml.date_closed @bug.date_closed - end - xml.comments do - for comment in @bug.map_bug_comment - xml.comment do - xml.date comment.date_created - if !comment.commenter_id.nil? - xml.uid comment.commenter_id - xml.user comment.user.display_name - else - xml.user comment.commenter_name - end - xml.text comment.comment - end - end - end -end +xml << render(:partial => "bug", :object => @bug)