Skip to content
Snippets Groups Projects
Commit 481431b7 authored by Robert Speicher's avatar Robert Speicher
Browse files

Fix cross-project reference clipboard text

parent 0e344aa2
No related branches found
No related tags found
1 merge request!2420Fix cross-project reference clipboard text
Pipeline #
Loading
Loading
@@ -95,7 +95,7 @@
 
.cross-project-reference {
color: $gl-link-color;
span {
white-space: nowrap;
width: 85%;
Loading
Loading
@@ -105,6 +105,10 @@
text-overflow: ellipsis;
}
 
cite {
font-style: normal;
}
button {
float: right;
}
Loading
Loading
Loading
Loading
@@ -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)}");
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment