Display renamed files in diff views
Show both the old and new filenames when viewing the diff for a renamed file.
This commit is contained in:
parent
d790b2cbb8
commit
0084b8a776
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@
|
||||||
.diff-btn-group
|
.diff-btn-group
|
||||||
- if @commit.parent_ids.present?
|
- if @commit.parent_ids.present?
|
||||||
= view_file_btn(@commit.parent_id, diff_file, project)
|
= view_file_btn(@commit.parent_id, diff_file, project)
|
||||||
|
- else
|
||||||
|
- if diff_file.renamed_file
|
||||||
|
%span= "#{diff_file.old_path} renamed to #{diff_file.new_path}"
|
||||||
- else
|
- else
|
||||||
%span= diff_file.new_path
|
%span= diff_file.new_path
|
||||||
- if diff_file.mode_changed?
|
- if diff_file.mode_changed?
|
||||||
|
|
Loading…
Reference in a new issue