2012-12-02 14:53:50 -05:00
|
|
|
- if @discussions.present?
|
|
|
|
- @discussions.each do |discussion_notes|
|
|
|
|
- note = discussion_notes.first
|
|
|
|
- if note_for_main_target?(note)
|
2016-05-10 18:41:46 -04:00
|
|
|
= render partial: "projects/notes/note", object: note, as: :note
|
2012-12-02 14:53:50 -05:00
|
|
|
- else
|
2013-12-25 06:32:43 -05:00
|
|
|
= render 'projects/notes/discussion', discussion_notes: discussion_notes
|
2012-12-02 14:53:50 -05:00
|
|
|
- else
|
|
|
|
- @notes.each do |note|
|
2016-05-10 18:41:46 -04:00
|
|
|
= render partial: "projects/notes/note", object: note, as: :note
|