X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/63e9c4771a02ecf69a692df3a6df3d236b0c214b..bb490aca81d8063a9ad8dd8f1a023c709c096792:/app/views/map_bugs/_bug.xml.builder diff --git a/app/views/map_bugs/_bug.xml.builder b/app/views/map_bugs/_bug.xml.builder index a25a588a2..1219f3d74 100644 --- a/app/views/map_bugs/_bug.xml.builder +++ b/app/views/map_bugs/_bug.xml.builder @@ -1,20 +1,20 @@ xml.bug("lon" => bug.lon, "lat" => bug.lat) do xml.id bug.id - xml.date_created bug.date_created + xml.date_created bug.created_at xml.nearby bug.nearby_place xml.status bug.status if bug.status == "closed" - xml.date_closed bug.date_closed + xml.date_closed bug.closed_at end xml.comments do - bug.map_bug_comment.each do |comment| + bug.comments.each do |comment| xml.comment do - xml.date comment.date_created - xml.uid comment.commenter_id unless comment.commenter_id.nil? - xml.user comment.commenter_name - xml.text comment.comment + xml.date comment.created_at + xml.uid comment.author_id unless comment.author_id.nil? + xml.user comment.author_name + xml.text comment.body end end end