{% import 'apostrophe-ui:components/dropdowns.html' as dropdowns with context -%} {%- if not data.page.published or (data.piece and not data.piece.published) -%}
{{ dropdowns.base({ label: "Unpublished", items: data.publishMenu }, 'button', { buttonType: 'global', attributes: 'apos--danger' }) }}
{%- endif -%}