diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-11-24 18:35:24 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-11-24 19:12:03 -0500 |
commit | 7dab8ed739359bc579d8bc4d3de61816993ca57d (patch) | |
tree | 9271059f8a674f36c9d49617e288087aba9c040b /app/views/projects/commits | |
parent | acc0f162c864d2a061461467473fca8761b6611f (diff) | |
download | gitlab-ce-7dab8ed739359bc579d8bc4d3de61816993ca57d.tar.gz |
Rework the copy_to_clipboard logic
It needed to be more flexible in how we set the target text or element.
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index 805be332e64..2e489a0a4d5 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -20,8 +20,8 @@ - if ci_commit = render_ci_status(ci_commit) - = clipboard_button - = link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit_short_id", data: {clipboard_text: commit.id} + = clipboard_button(clipboard_text: commit.id) + = link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit_short_id" .notes_count - if note_count > 0 |