]> git.openstreetmap.org Git - rails.git/blob - app/views/note/_note.xml.builder
Move notes resources to assets directory
[rails.git] / app / views / note / _note.xml.builder
1 xml.note("lon" => note.lon, "lat" => note.lat) do
2   xml.id note.id
3   xml.date_created note.created_at
4   xml.nearby note.nearby_place
5   xml.status note.status
6
7   if note.status == "closed"
8     xml.date_closed note.closed_at
9   end
10
11   xml.comments do
12     note.comments.each do |comment|
13       xml.comment do
14         xml.date comment.created_at
15         xml.uid comment.author_id unless comment.author_id.nil?
16         xml.user comment.author_name
17         xml.text comment.body
18       end       
19     end
20   end
21 end