_notes_with_form.html.haml 259 Bytes
%ul#notes-list.notes
.notes-status

.js-main-target-form
- if can? current_user, :write_note, @project
  = render "notes/common_form"

:javascript
  $(function(){
    NoteList.init("#{@target_id}", "#{@target_type}", "#{project_notes_path(@project)}");
  });