2013-12-25 20:32:23 +00:00
|
|
|
%ul#notes-list.notes.main-notes-list
|
2013-12-25 11:32:43 +00:00
|
|
|
= render "projects/notes/notes"
|
2012-12-02 22:14:56 +00:00
|
|
|
.js-notes-busy
|
2012-09-13 00:12:44 +00:00
|
|
|
|
2012-12-02 19:47:09 +00:00
|
|
|
.js-main-target-form
|
2011-11-04 15:46:51 +00:00
|
|
|
- if can? current_user, :write_note, @project
|
2013-06-23 16:47:22 +00:00
|
|
|
= render "projects/notes/form"
|
2012-02-24 20:19:47 +00:00
|
|
|
|
2011-10-08 21:36:38 +00:00
|
|
|
:javascript
|
2014-04-28 10:21:49 +00:00
|
|
|
new Notes("#{project_notes_path(target_id: @noteable.id, target_type: @noteable.class.name.underscore)}", #{@notes.map(&:id).to_json}, Time.now)
|