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

9 lines
351 B
Text
Raw Normal View History

- 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