2022-05-10 12:04:14 +03:00
|
|
|
<div role="tooltip" {{on "mouseover" this.onMouseover}} {{on "mouseleave" this.onMouseleave}} data-test-editor-post-status ...attributes>
|
|
|
|
{{#if (and this.isSaving @post.isDraft)}}
|
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)}}
|
2022-05-10 12:04:14 +03:00
|
|
|
Scheduled
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
<time datetime="{{@post.publishedAtUTC}}" class="ml1 green f8" data-test-schedule-countdown>
|
|
|
|
to be sent to <GhRecipientFilterCount @filter={{@post.emailRecipientFilter}} />
|
|
|
|
{{this.scheduledTime}}
|
|
|
|
</time>
|
|
|
|
{{/if}}
|
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>
|
2022-05-10 12:04:14 +03:00
|
|
|
Scheduled
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
to be published
|
|
|
|
{{#if (and @post.emailRecipientFilter (not @post.email))}}
|
|
|
|
and sent to <GhRecipientFilterCount @filter={{@post.emailRecipientFilter}} />
|
|
|
|
{{/if}}
|
|
|
|
{{this.scheduledTime}}
|
2021-06-11 14:10:28 +03:00
|
|
|
{{/if}}
|
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>
|