mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
09435ecf76
no issue Keeps component JS backing files and template files in the same directory which avoids hunting across directories when working with components. Also lets you see all components when looking at one directory, whereas previously template-only or js-only components may not have been obvious without looking at both directories. - ran [codemod](https://github.com/ember-codemods/ember-component-template-colocation-migrator/) for app-level components - manually moved in-repo-addon component templates in `lib/koenig-editor` - removed all explicit `layout` imports as JS/template associations are now made at build-time removing the need for them - updated `.embercli` to default to new flat component structure
31 lines
1.3 KiB
Handlebars
31 lines
1.3 KiB
Handlebars
<header class="modal-header" data-test-modal="delete-user">
|
||
<h1>Are you sure you want to delete this user?</h1>
|
||
</header>
|
||
<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
||
|
||
<div class="modal-body">
|
||
{{#if this.user.count.posts}}
|
||
<p>
|
||
<strong>{{this.user.name}}</strong> and their <strong data-test-text="user-post-count">{{pluralize this.user.count.posts 'post'}}</strong> will be permanently deleted. If you don’t want to lose these posts, you should assign them to a different author.
|
||
</p>
|
||
<p>
|
||
A backup will be automatically downloaded to your device before deletion.
|
||
</p>
|
||
{{else}}
|
||
<p>
|
||
<strong>{{this.user.name}}</strong> will be permanently deleted. A backup will be automatically downloaded to your device before deletion.
|
||
</p>
|
||
{{/if}}
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<button {{action "closeModal"}} class="gh-btn" data-test-button="cancel-delete-user">
|
||
<span>Cancel</span>
|
||
</button>
|
||
<GhTaskButton @buttonText="Download backup & delete user"
|
||
@successText="Deleted"
|
||
@task={{this.deleteUser}}
|
||
@class="gh-btn gh-btn-red gh-btn-icon"
|
||
data-test-button="confirm-delete-user" />
|
||
</div>
|