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

9 lines
341 B
Text
Raw Normal View History

2017-03-13 18:13:12 -04:00
- if defined?(@discussions)
- @discussions.each do |discussion|
2017-03-17 15:25:52 -04:00
- if discussion.individual_note?
2017-04-27 06:41:26 -04:00
= render partial: "shared/notes/note", collection: discussion.notes, as: :note
- else
= render 'discussions/discussion', discussion: discussion
- else
2017-04-27 06:41:26 -04:00
= render partial: "shared/notes/note", collection: @notes, as: :note