mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
90043cd28d
Issue #4583 - If a user has posts, show the count in the deletion warning.
13 lines
648 B
Handlebars
13 lines
648 B
Handlebars
{{#gh-modal-dialog action="closeModal" showClose=true type="action" style="wide,centered" animation="fade"
|
|
title="Are you sure you want to delete this user?" confirm=confirm}}
|
|
|
|
{{#unless userPostCount.isPending}}
|
|
{{#if userPostCount.count}}
|
|
<strong>WARNING:</strong> <span class="red">This user is the author of {{userPostCount.count}} {{userPostCount.inflection}}.</span> All posts and user data will be deleted. There is no way to recover this.
|
|
{{else}}
|
|
<strong>WARNING:</strong> All user data will be deleted. There is no way to recover this.
|
|
{{/if}}
|
|
{{/unless}}
|
|
|
|
{{/gh-modal-dialog}}
|