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

11 lines
355 B
Plaintext
Raw Normal View History

%ul#notes-list.notes.main-notes-list
= render "projects/notes/notes"
.js-notes-busy
2012-09-13 00:12:44 +00:00
.js-main-target-form
2011-11-04 15:46:51 +00:00
- if can? current_user, :write_note, @project
= render "projects/notes/form"
2011-10-08 21:36:38 +00:00
:javascript
new Notes("#{project_notes_path(target_id: @noteable.id, target_type: @noteable.class.name.underscore)}", #{@notes.map(&:id).to_json}, #{Time.now.to_i})