Commit 481431b7 authored by Robert Speicher's avatar Robert Speicher

Fix cross-project reference clipboard text

See https://gitlab.com/gitlab-org/gitlab-ce/issues/4183
parent 0e344aa2
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
.cross-project-reference { .cross-project-reference {
color: $gl-link-color; color: $gl-link-color;
span { span {
white-space: nowrap; white-space: nowrap;
width: 85%; width: 85%;
...@@ -105,6 +105,10 @@ ...@@ -105,6 +105,10 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
cite {
font-style: normal;
}
button { button {
float: right; float: right;
} }
......
...@@ -69,15 +69,16 @@ ...@@ -69,15 +69,16 @@
You're not receiving notifications from this thread. You're not receiving notifications from this thread.
.subscribed{class: ( 'hidden' unless subscribed )} .subscribed{class: ( 'hidden' unless subscribed )}
You're receiving notifications because you're subscribed to this thread. You're receiving notifications because you're subscribed to this thread.
- project_ref = cross_project_reference(@project, issuable) - project_ref = cross_project_reference(@project, issuable)
.block .block
.title .title
.cross-project-reference .cross-project-reference
%span#cross-project-reference %span
Reference: Reference:
%a{href: '#', title:project_ref} %cite{title: project_ref}
= project_ref = project_ref
= clipboard_button(clipboard_target: 'span#cross-project-reference') = clipboard_button(clipboard_text: project_ref)
:javascript :javascript
new Subscription("#{toggle_subscription_path(issuable)}"); new Subscription("#{toggle_subscription_path(issuable)}");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment