summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGlenn Sayers <glennsayers@protonmail.com>2017-02-09 16:10:10 +0000
committerGlenn Sayers <glennsayers@protonmail.com>2017-02-09 16:33:30 +0000
commitedea801389e3996dfb2d312abc06d20534163764 (patch)
tree548a61aaf930289763610ddf66313575e613229b /app
parent088096cd25589e3608a40de5f8ee8b74dfebe370 (diff)
downloadgitlab-ce-edea801389e3996dfb2d312abc06d20534163764.tar.gz
Allow copying a created branch name to the clipboard.
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/_last_push.html.haml1
1 files changed, 1 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