diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-16 15:38:10 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-16 15:41:04 -0600 |
commit | 2d0c0308d55fffd18e7b04c0d038ff5a8f194c56 (patch) | |
tree | 2054dac99de7228c50bf99d5106d7fb4fc56083b /app/views/projects/diffs/_text_file.html.haml | |
parent | 3b67af697ce246d1938c571090342c9aa0d9c247 (diff) | |
download | gitlab-ce-2d0c0308d55fffd18e7b04c0d038ff5a8f194c56.tar.gz |
prevent diff unfolding link from appearing for deleted files
Diffstat (limited to 'app/views/projects/diffs/_text_file.html.haml')
-rw-r--r-- | app/views/projects/diffs/_text_file.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_text_file.html.haml b/app/views/projects/diffs/_text_file.html.haml index 40b3f2510e5..ebd1a914ee7 100644 --- a/app/views/projects/diffs/_text_file.html.haml +++ b/app/views/projects/diffs/_text_file.html.haml @@ -10,7 +10,7 @@ as: :line, locals: { diff_file: diff_file, discussions: discussions } - - if !diff_file.new_file && diff_file.highlighted_diff_lines.any? + - if !diff_file.new_file && !diff_file.deleted_file && diff_file.highlighted_diff_lines.any? - last_line = diff_file.highlighted_diff_lines.last - if last_line.new_pos < total_lines %tr.line_holder |