BigW Consortium Gitlab

_diff_with_notes.html.haml 660 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
- 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
10
      - discussions = { discussion.original_line_code => discussion }
11 12 13 14 15 16 17
      = render partial: "projects/diffs/line",
        collection: discussion.truncated_diff_lines,
        as: :line,
        locals: { diff_file: diff_file,
          discussions: discussions,
          discussion_expanded: true,
          plain: true }