summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-02-13 18:11:26 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-02-13 18:12:19 +0000
commit2ecac881e728433fa54282ef6e20f0570f5ddc7e (patch)
tree8b4cd8e764d4bf77a3aa349a8618bfdff0134cfb /app/helpers
parent4e846c735f8ec7e24e61454b0506b839a8f0ff3f (diff)
downloadgitlab-ce-42314-diff-file.tar.gz
Render modified icon for moved file42314-diff-file
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/diff_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 0f5fc2823a3..b5ca39711bc 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -160,7 +160,7 @@ module DiffHelper
end
def diff_file_changed_icon(diff_file)
- if diff_file.deleted_file? || diff_file.renamed_file?
+ if diff_file.deleted_file?
"file-deletion"
elsif diff_file.new_file?
"file-addition"