summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-10 09:59:35 +0100
committerPhil Hughes <me@iamphill.com>2016-10-10 09:59:35 +0100
commit8592e992a0da4b966f9407ffc91f88ecd7fd750c (patch)
tree40e568000e4fda4922468ed72eb4af95a2f94e2f /app/views/projects/diffs
parent4e963fed42ad518caa7353d361a38a1250c99c41 (diff)
downloadgitlab-ce-8592e992a0da4b966f9407ffc91f88ecd7fd750c.tar.gz
Added copy file path button to diffsmr-file-path-copy-btn
Closes #23108
Diffstat (limited to 'app/views/projects/diffs')
-rw-r--r--app/views/projects/diffs/_file.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_file.html.haml b/app/views/projects/diffs/_file.html.haml
index d07de45fdde..257e0a855bd 100644
--- a/app/views/projects/diffs/_file.html.haml
+++ b/app/views/projects/diffs/_file.html.haml
@@ -8,7 +8,7 @@
= link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip btn-file-option', title: "Toggle comments for this file", disabled: @diff_notes_disabled do
= icon('comment')
\
-
+ = clipboard_button(clipboard_text: diff_file.new_path, class: 'btn-file-option')
- if editable_diff?(diff_file)
- link_opts = @merge_request.id ? { from_merge_request_id: @merge_request.id } : {}
= edit_blob_link(@merge_request.source_project, @merge_request.source_branch, diff_file.new_path,