Commit 905004fd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7980 from mr-vinn/diff-renames

Display renamed files in diff views
parents a565c51b 0084b8a7
......@@ -10,7 +10,10 @@
- if @commit.parent_ids.present?
= view_file_btn(@commit.parent_id, diff_file, project)
- else
%span= diff_file.new_path
- if diff_file.renamed_file
%span= "#{diff_file.old_path} renamed to #{diff_file.new_path}"
- else
%span= diff_file.new_path
- if diff_file.mode_changed?
%span.file-mode= "#{diff_file.diff.a_mode}#{diff_file.diff.b_mode}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment