]> git.openstreetmap.org Git - rails.git/blob - app/views/note/_note.json.erb
Bounding boxes are sanitised on creation now
[rails.git] / app / views / note / _note.json.erb
1 {
2   "type": "Feature",
3   "geometry": {
4     "type": "Point",
5     "coordinates": [ <%= note.lon %>, <%= note.lat %> ]
6   },
7   "properties": {
8     "id": <%= note.id %>,
9     "date_created": "<%= note.created_at %>",
10     "nearby": "<%= note.nearby_place %>",
11     "status": "<%= note.status %>",
12 <% if note.status == "closed" -%>
13     "closed_at": "<%= note.closed_at %>",
14 <% end -%>
15     "comments": [
16       <%= render :partial => "note_comment", :collection => note.comments, :spacer_template => "note_spacer" -%>
17     ]
18   }
19 }