_notes_with_form.html.haml 253 Bytes
Newer Older
1
%ul#notes-list.notes
2
.js-notes-busy
3

4
.js-main-target-form
gitlabhq's avatar
gitlabhq committed
5
- if can? current_user, :write_note, @project
6
  = render "notes/form"
7

gitlabhq's avatar
gitlabhq committed
8
:javascript
gitlabhq's avatar
gitlabhq committed
9
  $(function(){
Riyad Preukschas's avatar
Riyad Preukschas committed
10
    NoteList.init("#{@target_id}", "#{@target_type}", "#{project_notes_path(@project)}");
gitlabhq's avatar
gitlabhq committed
11
  });