BigW Consortium Gitlab

_text.html.haml 362 Bytes
Newer Older
Douwe Maan committed
1
- diff_file = viewer.diff_file
2
- blob = diff_file.blob
Douwe Maan committed
3 4 5 6 7 8
- 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