debian-mirror-gitlab/app/views/projects/diffs/viewers/_text.html.haml
2017-09-10 17:25:29 +05:30

8 lines
362 B
Text

- diff_file = viewer.diff_file
- blob = diff_file.blob
- total_lines = blob.lines.size
- total_lines -= 1 if total_lines > 0 && blob.lines.last.blank?
- if diff_view == :parallel
= render "projects/diffs/parallel_view", diff_file: diff_file, total_lines: total_lines
- else
= render "projects/diffs/text_file", diff_file: diff_file, total_lines: total_lines