Ghost/ghost/admin/app/components/modal-delete-post.hbs

16 lines
654 B
Handlebars
Raw Normal View History

<header class="modal-header">
<h1>Are you sure you want to delete this {{this.post.displayName}}?</h1>
</header>
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
<div class="modal-body">
<p>
You're about to delete "<strong>{{this.post.title}}</strong>". This is permanent! We warned you, k?
</p>
</div>
<div class="modal-footer">
<button {{action "closeModal"}} class="gh-btn"><span>Cancel</span></button>
<GhTaskButton @buttonText="Delete" @successText="Deleted" @task={{this.deletePost}} @class="gh-btn gh-btn-red gh-btn-icon" />
</div>