2017-03-23 16:53:51 -04:00
|
|
|
- affix_offset = local_assigns.fetch(:affix_offset, "102")
|
|
|
|
|
|
|
|
%aside.right-sidebar.js-right-sidebar{ data: { "offset-top" => affix_offset, "spy" => "affix" }, class: sidebar_gutter_collapsed_class, 'aria-live' => 'polite' }
|
|
|
|
.issuable-sidebar
|
|
|
|
.block.issuable-sidebar-header
|
|
|
|
%a.gutter-toggle.pull-right.js-sidebar-toggle{ role: "button", href: "#", "aria-label" => "Toggle sidebar" }
|
|
|
|
= sidebar_gutter_toggle_icon
|
2017-03-24 13:04:46 -04:00
|
|
|
|
|
|
|
%span.issuable-header-text.hide-collapsed
|
|
|
|
Milestone #{milestone.try(:to_reference) || milestone.title}
|
|
|
|
|
|
|
|
- milestone_ref = milestone.try(:to_reference, full: true)
|
|
|
|
- if milestone_ref.present?
|
|
|
|
.block
|
|
|
|
.sidebar-collapsed-icon.dont-change-state
|
|
|
|
= clipboard_button(clipboard_text: milestone_ref, title: "Copy reference to clipboard", placement: "left")
|
|
|
|
.cross-project-reference.hide-collapsed
|
|
|
|
%span
|
|
|
|
Reference:
|
|
|
|
%cite{ title: milestone_ref }
|
|
|
|
= milestone_ref
|
|
|
|
= clipboard_button(clipboard_text: milestone_ref, title: "Copy reference to clipboard", placement: "left")
|