Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-12-09 01:43:03 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-12-09 22:54:54 +0300
commitcbac31d923c39d71b162250f893d716073cc08e0 (patch)
tree646906efdfbdf7e64cba56ec8b2e6649c166d3aa /app/views/shared/_file_highlight.html.haml
parent7b50965e9990bcb88f56b771d47514cbeb5316e5 (diff)
Add copy-to-clipboard button to Snippets#show
Closes #3701
Diffstat (limited to 'app/views/shared/_file_highlight.html.haml')
-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)}