2016-10-17 11:48:48 +00:00
|
|
|
%i.fa.diff-toggle-caret.fa-fw
|
2016-06-20 16:57:10 +00:00
|
|
|
- if defined?(blob) && blob && diff_file.submodule?
|
|
|
|
%span
|
|
|
|
= icon('archive fw')
|
|
|
|
%span
|
|
|
|
= submodule_link(blob, diff_commit.id, project.repository)
|
|
|
|
- else
|
|
|
|
= conditional_link_to url.present?, url do
|
|
|
|
= blob_icon diff_file.b_mode, diff_file.file_path
|
|
|
|
|
|
|
|
- if diff_file.renamed_file
|
|
|
|
- old_path, new_path = mark_inline_diffs(diff_file.old_path, diff_file.new_path)
|
2017-02-20 13:22:44 +00:00
|
|
|
%strong.file-title-name.has-tooltip{ data: { title: diff_file.old_path, container: 'body' } }
|
2016-06-20 16:57:10 +00:00
|
|
|
= old_path
|
|
|
|
→
|
2017-02-20 13:22:44 +00:00
|
|
|
%strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path, container: 'body' } }
|
2016-06-20 16:57:10 +00:00
|
|
|
= new_path
|
|
|
|
- else
|
2017-02-12 17:51:03 +00:00
|
|
|
%strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path, container: 'body' } }
|
2016-06-20 16:57:10 +00:00
|
|
|
= diff_file.new_path
|
|
|
|
- if diff_file.deleted_file
|
|
|
|
deleted
|
|
|
|
|
2016-12-26 23:15:10 +00:00
|
|
|
= clipboard_button(clipboard_text: diff_file.new_path, class: 'btn-clipboard btn-transparent prepend-left-5', title: 'Copy file path to clipboard')
|
2016-10-31 16:52:30 +00:00
|
|
|
|
2016-06-20 16:57:10 +00:00
|
|
|
- if diff_file.mode_changed?
|
|
|
|
%small
|
2017-01-15 16:20:13 +00:00
|
|
|
#{diff_file.a_mode} → #{diff_file.b_mode}
|