summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-12-08 17:43:03 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-12-09 14:54:54 -0500
commitcbac31d923c39d71b162250f893d716073cc08e0 (patch)
tree646906efdfbdf7e64cba56ec8b2e6649c166d3aa /app/views/shared
parent7b50965e9990bcb88f56b771d47514cbeb5316e5 (diff)
downloadgitlab-ce-cbac31d923c39d71b162250f893d716073cc08e0.tar.gz
Add copy-to-clipboard button to Snippets#showrs-snippets-clipboard
Closes #3701
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_file_highlight.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/shared/_file_highlight.html.haml b/app/views/shared/_file_highlight.html.haml
index 57c3aff3e18..2bc98983d67 100644
--- a/app/views/shared/_file_highlight.html.haml
+++ b/app/views/shared/_file_highlight.html.haml
@@ -8,5 +8,6 @@
%a{href: "#L#{i}", id: "L#{i}", 'data-line-number' => i}
%i.fa.fa-link
= i
- :preserve
- #{highlight(blob.name, blob.data)}
+ .blob-content{data: {blob_id: blob.id}}
+ :preserve
+ #{highlight(blob.name, blob.data)}