debian-mirror-gitlab/app/views/projects/notes/_notes.html.haml

9 lines
351 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- if @discussions.present?
2016-09-13 17:45:13 +05:30
- @discussions.each do |discussion|
- if discussion.for_target?(@noteable)
= render partial: "projects/notes/note", object: discussion.first_note, as: :note
2014-09-02 18:07:02 +05:30
- else
2016-09-13 17:45:13 +05:30
= render 'discussions/discussion', discussion: discussion
2014-09-02 18:07:02 +05:30
- else
2016-09-13 17:45:13 +05:30
= render partial: "projects/notes/note", collection: @notes, as: :note