Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_diff_notes_with_reply_parallel.html.haml « notes « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2012aa021b9158ef4b6f152a7f54f180d00fefed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- note1 = notes1.first # example note
- note2 = notes2.first # example note
%tr.notes_holder.js-toggle-content
  -# Check if line want not changed since comment was left
  /- if !defined?(line1) || line1 == note1.diff_line
  - if note1
    %td.notes_content
      %ul.notes{ rel: note1.discussion_id }
        = render notes1
      = render "projects/notes/discussion_reply_button", note: note1
    %td.notes_line2
      %span.btn.disabled.parallel-comment
        %i.icon-comment
        = notes1.count
  - else
    %td= ""
    %td= ""

  %td= ""

  -# Check if line want not changed since comment was left
  /- if !defined?(line2) || line2 == note2.diff_line
  - if note2
    %td.notes_line
      %span.btn.disabled.parallel-comment
        %i.icon-comment
        = notes2.count
    %td.notes_content
      %ul.notes{ rel: note2.discussion_id }
        = render notes2
      = render "projects/notes/discussion_reply_button", note: note2
  - else
    %td= ""
    %td= ""