summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-30 18:17:53 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-30 18:17:53 -0400
commit827e8c61c9df071ab2f9fa33ec91bf854aaf4d50 (patch)
treea7d780174f45e17a4cbcc90fc289fefd62836915
parentca0e58b8fc756b70aea29ffbe4d2188a7c1eabd3 (diff)
downloadgitlab-ce-rs-clipboard-js.tar.gz
WIP WIP WIPrs-clipboard-js
-rw-r--r--app/assets/stylesheets/pages/issuable.scss13
-rw-r--r--app/views/projects/issues/_discussion.html.haml7
2 files changed, 18 insertions, 2 deletions
diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss
index b5c61f7f91d..132818a5310 100644
--- a/app/assets/stylesheets/pages/issuable.scss
+++ b/app/assets/stylesheets/pages/issuable.scss
@@ -79,3 +79,16 @@
}
}
}
+
+.cross-project-reference {
+ text-align: center;
+ width: 100%;
+
+ .slead {
+ padding: 5px;
+ }
+
+ span, button {
+ background-color: $background-color;
+ }
+}
diff --git a/app/views/projects/issues/_discussion.html.haml b/app/views/projects/issues/_discussion.html.haml
index d4a98eca473..b8e7b57fa45 100644
--- a/app/views/projects/issues/_discussion.html.haml
+++ b/app/views/projects/issues/_discussion.html.haml
@@ -17,8 +17,11 @@
- @participants.each do |participant|
= link_to_member(@project, participant, name: false, size: 24)
.col-md-3
- %span.slead.has_tooltip{title: 'Cross-project reference'}
- = cross_project_reference(@project, @issue)
+ .input-group.cross-project-reference
+ %span#js-cross-project-reference.slead.has_tooltip{title: 'Cross-project reference'}
+ = cross_project_reference(@project, @issue)
+ %button.btn.btn-sm.js-clipboard-trigger{data: {clipboard_target: '#js-cross-project-reference'}}
+ = icon('clipboard')
.row
%section.col-md-9