summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <lacerda.filipa@gmail.com>2017-02-09 21:18:24 +0000
committerFilipa Lacerda <lacerda.filipa@gmail.com>2017-02-09 21:18:24 +0000
commite355d8fe287002df0948033a19db9caaf8174555 (patch)
tree301d9f80656f524c57408c757a004622db570a52
parent5ae02354b478458859bffeba7d444535ddbe811c (diff)
parentedea801389e3996dfb2d312abc06d20534163764 (diff)
downloadgitlab-ce-e355d8fe287002df0948033a19db9caaf8174555.tar.gz
Merge branch 'copy-branch-to-clipboard' into 'master'
Allow copying a created branch name to the clipboard. See merge request !9103
-rw-r--r--app/views/projects/_last_push.html.haml1
-rw-r--r--changelogs/unreleased/copy-branch-to-clipboard.yml4
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/_last_push.html.haml b/app/views/projects/_last_push.html.haml
index 1c3bccccb5c..a08436715d2 100644
--- a/app/views/projects/_last_push.html.haml
+++ b/app/views/projects/_last_push.html.haml
@@ -10,6 +10,7 @@
- if @project && event.project != @project
%span at
%strong= link_to_project event.project
+ = clipboard_button(clipboard_text: event.ref_name, class: 'btn-clipboard btn-transparent', title: 'Copy branch to clipboard')
#{time_ago_with_tooltip(event.created_at)}
.pull-right
diff --git a/changelogs/unreleased/copy-branch-to-clipboard.yml b/changelogs/unreleased/copy-branch-to-clipboard.yml
new file mode 100644
index 00000000000..c12e324ed3c
--- /dev/null
+++ b/changelogs/unreleased/copy-branch-to-clipboard.yml
@@ -0,0 +1,4 @@
+---
+title: Added the ability to copy a branch name to the clipboard
+merge_request: 9103
+author: Glenn Sayers