_notes.html.haml 531 Bytes
Newer Older
1 2 3 4
- if @discussions.present?
  - @discussions.each do |discussion_notes|
    - note = discussion_notes.first
    - if note_for_main_target?(note)
5 6
      - next if note.cross_reference_not_visible_for?(current_user)

7 8
      = render discussion_notes
    - else
Phil Hughes's avatar
Phil Hughes committed
9 10
      %li.note.note-discussion.timeline-entry
        = render 'projects/notes/discussion', discussion_notes: discussion_notes
11 12 13
- else
  - @notes.each do |note|
    - next unless note.author
14 15
    - next if note.cross_reference_not_visible_for?(current_user)

16
    = render note