diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-08 17:43:03 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-12-09 14:54:54 -0500 |
commit | cbac31d923c39d71b162250f893d716073cc08e0 (patch) | |
tree | 646906efdfbdf7e64cba56ec8b2e6649c166d3aa /app/views/shared/_file_highlight.html.haml | |
parent | 7b50965e9990bcb88f56b771d47514cbeb5316e5 (diff) | |
download | gitlab-ce-cbac31d923c39d71b162250f893d716073cc08e0.tar.gz |
Add copy-to-clipboard button to Snippets#showrs-snippets-clipboard
Closes #3701
Diffstat (limited to 'app/views/shared/_file_highlight.html.haml')
-rw-r--r-- | app/views/shared/_file_highlight.html.haml | 5 |
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)} |