2017-03-13 18:13:12 -04:00
|
|
|
- if defined?(@discussions)
|
2016-07-20 18:18:18 -04:00
|
|
|
- @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
|
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
|
2017-04-27 06:41:26 -04:00
|
|
|
= render partial: "shared/notes/note", collection: @notes, as: :note
|