summaryrefslogtreecommitdiff
path: root/app/views/projects/commits
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-11-24 18:35:24 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-11-24 19:12:03 -0500
commit7dab8ed739359bc579d8bc4d3de61816993ca57d (patch)
tree9271059f8a674f36c9d49617e288087aba9c040b /app/views/projects/commits
parentacc0f162c864d2a061461467473fca8761b6611f (diff)
downloadgitlab-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.haml4
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)
&nbsp;
- = 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