gitlab-org--gitlab-foss/app/views/notes/_notes_with_form.html.haml

12 lines
296 B
Plaintext
Raw Normal View History

%ul#notes-list.notes
2012-09-13 00:12:44 +00:00
2011-11-04 15:46:51 +00:00
- if can? current_user, :write_note, @project
2012-11-20 16:46:55 +00:00
.note-forms.js-note-forms
= render "notes/common_form"
2012-12-02 19:43:39 +00:00
= render "notes/discussion_note_form"
2011-10-08 21:36:38 +00:00
:javascript
2011-11-04 15:46:51 +00:00
$(function(){
2012-12-02 19:43:39 +00:00
NoteList.init("#{@target_id}", "#{@target_type}", "#{project_notes_path(@project)}");
2011-11-04 15:46:51 +00:00
});