Ghost/ghost/admin/app/components/gh-editor-post-status.hbs
Kevin Ansfield a6ebb928a9 Improved scheduled status text shown in editor
refs https://github.com/TryGhost/Ghost/issues/11965

- always show scheduled time when a post is scheduled
- show when a post will be emailed and to which group of members
2020-07-01 14:07:52 +01:00

20 lines
775 B
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 {{pluralize @post.email.emailCount "member"}}
{{else if (eq @post.email.status "submitted")}}
and sent to {{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 {{this.scheduledText}}.
</time>
{{else if @post.isNew}}
New
{{else}}
Draft
{{/if}}
</div>