Commit 3eb5ceba authored by Robert Speicher's avatar Robert Speicher Committed by Robert Speicher

Merge branch 'rs-fix-cross-reference' into 'master'

Fix cross-project reference clipboard text

See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2339

See merge request !2420
parent dd6c69e6
...@@ -105,8 +105,13 @@ ...@@ -105,8 +105,13 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
cite {
font-style: normal;
}
button { button {
float: right; float: right;
padding: 3px 5px;
} }
} }
......
...@@ -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