Ghost/ghost/admin/app/components/gh-publishmenu-published.hbs

19 lines
1.2 KiB
Handlebars
Raw Normal View History

<div {{did-insert (fn @setSaveType "publish")}} data-test-publishmenu-published="true" ...attributes>
<header class="gh-publishmenu-heading">Update {{@post.displayName}} status</header>
<section class="gh-publishmenu-content gh-publishmenu-section">
<div class="gh-publishmenu-radio {{if (eq @saveType "draft") "active"}}" {{on "click" (fn @setSaveType "draft")}}>
<div class="gh-publishmenu-radio-button" data-test-publishmenu-unpublished-option></div>
<div class="gh-publishmenu-radio-content">
<div class="gh-publishmenu-radio-label">Unpublished</div>
<div class="gh-publishmenu-radio-desc">Revert this {{@post.displayName}} to a private draft</div>
</div>
</div>
<div class="gh-publishmenu-radio {{if (eq @saveType "publish") "active"}}" {{on "click" (fn @setSaveType "publish")}}>
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
<div class="gh-publishmenu-radio-content">
<div class="gh-publishmenu-radio-label">Published</div>
<div class="gh-publishmenu-radio-desc">Display this {{@post.displayName}} publicly</div>
</div>
</div>
</section>
</div>