Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_text.html.haml « viewers « diffs « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 509e68598c97bbd5f96e75cc226dd161dcac9bcf (plain)
1
2
3
4
5
6
7
8
- 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