diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-14 11:58:52 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-03-16 09:37:22 -0600 |
commit | c52fead0d2715b27a7f832c8d848a12d3dd84bae (patch) | |
tree | 49428e3ff85c2903bdfc5c00cf11f707782d3b29 /app/views/projects/diffs/_file_header.html.haml | |
parent | 95b3b6859a150606586854a666b8163bec21a154 (diff) | |
download | gitlab-ce-c52fead0d2715b27a7f832c8d848a12d3dd84bae.tar.gz |
Fix spec
Diffstat (limited to 'app/views/projects/diffs/_file_header.html.haml')
-rw-r--r-- | app/views/projects/diffs/_file_header.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_file_header.html.haml b/app/views/projects/diffs/_file_header.html.haml index f809c52c367..7d6b3701f95 100644 --- a/app/views/projects/diffs/_file_header.html.haml +++ b/app/views/projects/diffs/_file_header.html.haml @@ -2,8 +2,11 @@ - if defined?(blob) && blob && diff_file.submodule? %span = icon('archive fw') - %span + + %strong.file-title-name = submodule_link(blob, diff_commit.id, project.repository) + + = copy_file_path_button(blob.path) - else = conditional_link_to url.present?, url do = blob_icon diff_file.b_mode, diff_file.file_path @@ -21,7 +24,7 @@ - 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') + = copy_file_path_button(diff_file.new_path) - if diff_file.mode_changed? %small |