apostrophe
Version:
The Apostrophe Content Management System.
11 lines (10 loc) • 387 B
HTML
{% import 'apostrophe-ui:components/dropdowns.html' as dropdowns with context -%}
{%- if not (data.page and data.page.published) or (data.piece and not data.piece.published) -%}
<div class="apos-context-menu">
{{ dropdowns.base({
label: "Unpublished",
items: data.publishMenu
}, 'button', { buttonType: 'global', attributes: 'apos--danger' })
}}
</div>
{%- endif -%}