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
......@@ -105,6 +105,10 @@
text-overflow: ellipsis;
}
cite {
font-style: normal;
}
button {
float: right;
}
......
......@@ -69,15 +69,16 @@
You're not receiving notifications from this thread.
.subscribed{class: ( 'hidden' unless subscribed )}
You're receiving notifications because you're subscribed to this thread.
- project_ref = cross_project_reference(@project, issuable)
.block
.title
.cross-project-reference
%span#cross-project-reference
%span
Reference:
%a{href: '#', title:project_ref}
%cite{title: project_ref}
= project_ref
= clipboard_button(clipboard_target: 'span#cross-project-reference')
= clipboard_button(clipboard_text: project_ref)
:javascript
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