2012-12-02 14:53:50 -05:00
|
|
|
- if @discussions.present?
|
2016-07-20 18:18:18 -04:00
|
|
|
- @discussions.each do |discussion|
|
|
|
|
- if discussion.for_target?(@noteable)
|
|
|
|
= render partial: "projects/notes/note", object: discussion.first_note, as: :note
|
2012-12-02 14:53:50 -05:00
|
|
|
- else
|
2016-07-20 18:18:18 -04:00
|
|
|
= render 'discussions/discussion', discussion: discussion
|
2012-12-02 14:53:50 -05:00
|
|
|
- else
|
2016-07-20 18:18:18 -04:00
|
|
|
= render partial: "projects/notes/note", collection: @notes, as: :note
|