28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
%i.fa.diff-toggle-caret.fa-fw
|
|
- 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)
|
|
%strong.file-title-name.has-tooltip{ data: { title: diff_file.old_path, container: 'body' } }
|
|
= old_path
|
|
→
|
|
%strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path, container: 'body' } }
|
|
= new_path
|
|
- else
|
|
%strong.file-title-name.has-tooltip{ data: { title: diff_file.new_path, container: 'body' } }
|
|
= diff_file.new_path
|
|
- if diff_file.deleted_file
|
|
deleted
|
|
|
|
= clipboard_button(clipboard_text: diff_file.new_path, class: 'btn-clipboard btn-transparent prepend-left-5', title: 'Copy file path to clipboard')
|
|
|
|
- if diff_file.mode_changed?
|
|
%small
|
|
#{diff_file.a_mode} → #{diff_file.b_mode}
|