]> git.openstreetmap.org Git - rails.git/blob - app/views/notes/_note.xml.builder
Disable buttons while form submission is in progress
[rails.git] / app / views / notes / _note.xml.builder
1 xml.note("lon" => note.lon, "lat" => note.lat) do
2   xml.id note.id
3   xml.url note_url(note, :format => params[:format])
4   xml.comment_url comment_note_url(note, :format => params[:format])
5   xml.close_url close_note_url(note, :format => params[:format])  
6   xml.date_created note.created_at
7   xml.nearby note.nearby_place
8   xml.status note.status
9
10   if note.status == "closed"
11     xml.date_closed note.closed_at
12   end
13
14   xml.comments do
15     note.comments.each do |comment|
16       xml.comment do
17         xml.date comment.created_at
18         xml.uid comment.author_id unless comment.author_id.nil?
19         xml.user comment.author_name
20         xml.text comment.body
21       end       
22     end
23   end
24 end