2014-09-02 18:07:02 +05:30
|
|
|
- if @discussions.present?
|
|
|
|
- @discussions.each do |discussion_notes|
|
|
|
|
- note = discussion_notes.first
|
|
|
|
- if note_for_main_target?(note)
|
2016-01-19 16:12:03 +05:30
|
|
|
- next if note.cross_reference_not_visible_for?(current_user)
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
= render discussion_notes
|
|
|
|
- else
|
|
|
|
= render 'projects/notes/discussion', discussion_notes: discussion_notes
|
|
|
|
- else
|
|
|
|
- @notes.each do |note|
|
|
|
|
- next unless note.author
|
2016-01-19 16:12:03 +05:30
|
|
|
- next if note.cross_reference_not_visible_for?(current_user)
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
= render note
|