debian-mirror-gitlab/app/views/projects/diffs/viewers/_text.html.haml

9 lines
362 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- 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