BigW Consortium Gitlab

_notes.html.haml 341 Bytes
Newer Older
Douwe Maan committed
1
- if defined?(@discussions)
2
  - @discussions.each do |discussion|
Douwe Maan committed
3
    - if discussion.individual_note?
4
      = render partial: "shared/notes/note", collection: discussion.notes, as: :note
5
    - else
6
      = render 'discussions/discussion', discussion: discussion
7
- else
8
  = render partial: "shared/notes/note", collection: @notes, as: :note