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

_diff_with_notes.html.haml « discussions « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 02b159ffd454b4f2b19bfc407d08723c03dce167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- diff_file = discussion.diff_file
- blob = discussion.blob

.diff-file.file-holder
  .file-title
    = render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_file.content_commit, project: discussion.project, url: discussion_diff_path(discussion)

  .diff-content.code.js-syntax-highlight
    %table
      - discussion.truncated_diff_lines.each do |line|
        = render "projects/diffs/line", line: line, diff_file: diff_file, plain: true

        - if discussion.for_line?(line)
          = render "discussions/diff_discussion", discussion: discussion