mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
beb5ae1737
no issue
- This will help with the octane migration and you can still run the lint rules even when they are todos. (Checkout the docs at 158b119667/docs/todos.md
) The good news is any new code will be checked against the recommended config.
- I fixed all the auto fixable things we could get in this PR as well
32 lines
1.4 KiB
Handlebars
32 lines
1.4 KiB
Handlebars
<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}}
|
|
</time>
|
|
{{else if @post.isNew}}
|
|
New
|
|
{{else}}
|
|
Draft
|
|
{{unless @hasDirtyAttributes "- Saved"}}
|
|
{{/if}}
|
|
</div> |