debian-mirror-gitlab/app/views/projects/notes/_notes.html.haml
2016-09-13 17:45:13 +05:30

8 lines
351 B
Text

- if @discussions.present?
- @discussions.each do |discussion|
- if discussion.for_target?(@noteable)
= render partial: "projects/notes/note", object: discussion.first_note, as: :note
- else
= render 'discussions/discussion', discussion: discussion
- else
= render partial: "projects/notes/note", collection: @notes, as: :note