fix build failures
This commit is contained in:
parent
c89d9e741c
commit
3b67af697c
1 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,8 @@
|
||||||
%a.click-to-expand
|
%a.click-to-expand
|
||||||
Click to expand it.
|
Click to expand it.
|
||||||
- elsif diff_file.diff_lines.length > 0
|
- elsif diff_file.diff_lines.length > 0
|
||||||
|
- total_lines = 0
|
||||||
|
- if blob.lines.any?
|
||||||
- total_lines = blob.lines.last.chomp == '' ? blob.lines.size - 1 : blob.lines.size
|
- total_lines = blob.lines.last.chomp == '' ? blob.lines.size - 1 : blob.lines.size
|
||||||
- if diff_view == :parallel
|
- if diff_view == :parallel
|
||||||
= render "projects/diffs/parallel_view", diff_file: diff_file, total_lines: total_lines
|
= render "projects/diffs/parallel_view", diff_file: diff_file, total_lines: total_lines
|
||||||
|
|
Loading…
Reference in a new issue