Ghost/ghost/admin/app/components/gh-editor-post-status.hbs

32 lines
1.4 KiB
Handlebars
Raw Normal View History

<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 (and @post.emailOnly @post.isScheduled)}}
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
Will be sent to <GhRecipientFilterCount @filter={{@post.emailRecipientFilter}} />
{{this.scheduledTime}}
</time>
{{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}}
2019-11-13 17:31:42 +03:00
</time>
{{else if @post.isNew}}
New
2019-11-13 17:31:42 +03:00
{{else}}
Draft
{{unless @hasDirtyAttributes "- Saved"}}
2019-11-13 17:31:42 +03:00
{{/if}}
</div>