mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
b7fee9a7bb
closes https://github.com/TryGhost/Team/issues/1155 - added handling to `<GhEditorPostStatus>` for posts with status `'sent'`, it now shows "Sent to x members" instead of "Draft - saved"
27 lines
1.1 KiB
Handlebars
27 lines
1.1 KiB
Handlebars
<div data-test-editor-post-status ...attributes>
|
|
{{#if this.isSaving}}
|
|
Saving...
|
|
{{else if @post.isSent}}
|
|
Sent to {{gh-pluralize @post.email.emailCount "member"}}
|
|
{{else if (or @post.isPublished @post.pastScheduledTime)}}
|
|
Published
|
|
{{#if (or (eq @post.email.status "submitting") (eq @post.email.status "submitting"))}}
|
|
and sending to {{gh-pluralize @post.email.emailCount "member"}}
|
|
{{else if (eq @post.email.status "submitted")}}
|
|
and sent to {{gh-pluralize @post.email.emailCount "member"}}
|
|
{{/if}}
|
|
{{else if @post.isScheduled}}
|
|
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
|
|
Will be published
|
|
{{#if (and @post.emailRecipientFilter (not @post.email))}}
|
|
and sent to <GhRecipientFilterCount @filter={{@post.emailRecipientFilter}} />
|
|
{{/if}}
|
|
{{this.scheduledTime}}
|
|
</time>
|
|
{{else if @post.isNew}}
|
|
New
|
|
{{else}}
|
|
Draft
|
|
{{if (not @hasDirtyAttributes) "- Saved"}}
|
|
{{/if}}
|
|
</div> |