diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-25 02:53:25 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-17 00:40:50 +0300 |
commit | c89d9e741ce793245427b2b21d58f9df75fe10cd (patch) | |
tree | 5fcb956a41bb5fe8b9d94cd6e51c6354041a5274 /app/views/projects/blob/diff.html.haml | |
parent | d6fea1e8beb0e1c98954b40e6f807e9febbca185 (diff) |
only show diff unfolding link if there are more lines to show
Diffstat (limited to 'app/views/projects/blob/diff.html.haml')
-rw-r--r-- | app/views/projects/blob/diff.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/diff.html.haml b/app/views/projects/blob/diff.html.haml index 3b1a2e54ec2..d1f7f65bf53 100644 --- a/app/views/projects/blob/diff.html.haml +++ b/app/views/projects/blob/diff.html.haml @@ -25,6 +25,6 @@ = link_to raw(line_new), "##{line_new}" = line_content - - if @form.unfold? && @form.bottom? && @form.to < @blob.loc + - if @form.unfold? && @form.bottom? && @form.to < @blob.lines.size %tr.line_holder{ id: @form.to, class: line_class } = diff_match_line @form.to - @form.offset, @form.to, text: @match_line, view: diff_view, bottom: true |