gitlab-org--gitlab-foss/app/views/projects/diffs/viewers/_text.html.haml
2017-06-14 10:12:21 -05:00

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