From edea801389e3996dfb2d312abc06d20534163764 Mon Sep 17 00:00:00 2001 From: Glenn Sayers Date: Thu, 9 Feb 2017 16:10:10 +0000 Subject: [PATCH] Allow copying a created branch name to the clipboard. --- app/views/projects/_last_push.html.haml | 1 + changelogs/unreleased/copy-branch-to-clipboard.yml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/unreleased/copy-branch-to-clipboard.yml 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