mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
dd2a36a4c7
no issue After publishing and sending a post, if it was unpublished then scheduled again the post status would show "published and sent to x members" where `x` is the current number of members but that's incorrect because a post can only be sent by email once - removed the "and sent to x members" message if a scheduled post has already been sent via email
25 lines
1.0 KiB
Handlebars
25 lines
1.0 KiB
Handlebars
<div data-test-editor-post-status ...attributes>
|
|
{{#if this.isSaving}}
|
|
Saving...
|
|
{{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> |