summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/_notes.html.haml
blob: 62db86fb18171cd335b585f030e46ac361361c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- if @discussions.present?
  - @discussions.each do |discussion_notes|
    - note = discussion_notes.first
    - if note_for_main_target?(note)
      - next if note.cross_reference_not_visible_for?(current_user)

      = render discussion_notes
    - else
      = render 'projects/notes/discussion', discussion_notes: discussion_notes
- else
  - @notes.each do |note|
    - next unless note.author
    - next if note.cross_reference_not_visible_for?(current_user)

    = render note