2020-07-01 16:07:52 +03:00
|
|
|
<div data-test-editor-post-status ...attributes>
|
2020-08-03 11:51:06 +03:00
|
|
|
{{#if this.isSaving}}
|
2020-07-01 16:07:52 +03:00
|
|
|
Saving...
|
2021-10-25 17:17:02 +03:00
|
|
|
{{else if @post.isSent}}
|
|
|
|
Sent to {{gh-pluralize @post.email.emailCount "member"}}
|
2021-12-07 12:37:49 +03:00
|
|
|
{{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>
|
2020-07-01 16:07:52 +03:00
|
|
|
{{else if (or @post.isPublished @post.pastScheduledTime)}}
|
|
|
|
Published
|
|
|
|
{{#if (or (eq @post.email.status "submitting") (eq @post.email.status "submitting"))}}
|
2020-08-10 13:16:03 +03:00
|
|
|
and sending to {{gh-pluralize @post.email.emailCount "member"}}
|
2020-07-01 16:07:52 +03:00
|
|
|
{{else if (eq @post.email.status "submitted")}}
|
2020-08-10 13:16:03 +03:00
|
|
|
and sent to {{gh-pluralize @post.email.emailCount "member"}}
|
2020-07-01 16:07:52 +03:00
|
|
|
{{/if}}
|
|
|
|
{{else if @post.isScheduled}}
|
|
|
|
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
|
2021-06-11 14:10:28 +03:00
|
|
|
Will be published
|
2021-09-20 19:41:59 +03:00
|
|
|
{{#if (and @post.emailRecipientFilter (not @post.email))}}
|
2021-06-11 14:10:28 +03:00
|
|
|
and sent to <GhRecipientFilterCount @filter={{@post.emailRecipientFilter}} />
|
|
|
|
{{/if}}
|
2021-06-11 13:44:42 +03:00
|
|
|
{{this.scheduledTime}}
|
2019-11-13 17:31:42 +03:00
|
|
|
</time>
|
2020-07-01 16:07:52 +03:00
|
|
|
{{else if @post.isNew}}
|
|
|
|
New
|
2019-11-13 17:31:42 +03:00
|
|
|
{{else}}
|
2021-07-07 13:53:06 +03:00
|
|
|
Draft
|
2022-02-02 19:09:43 +03:00
|
|
|
{{unless @hasDirtyAttributes "- Saved"}}
|
2019-11-13 17:31:42 +03:00
|
|
|
{{/if}}
|
2020-07-01 16:07:52 +03:00
|
|
|
</div>
|