0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Adjusted hover text for scheduled email-only posts

refs https://github.com/TryGhost/Team/issues/2533

- changes the text from "to be published and sent" to "to be sent"
- this applies to scheduled email-only posts only
This commit is contained in:
Sodbileg Gansukh 2023-03-13 17:52:06 +08:00
parent f31c69d7d5
commit 905c2ed090

View file

@ -60,7 +60,7 @@
{{#if @post.primaryTag}} {{#if @post.primaryTag}}
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span> in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
{{/if}} {{/if}}
- -
</span> </span>
<span class="gh-content-entry-date" {{on "mouseover" (fn (mut this.isDateHovered) true)}} {{on "mouseleave" (fn (mut this.isDateHovered) false)}}> <span class="gh-content-entry-date" {{on "mouseover" (fn (mut this.isDateHovered) true)}} {{on "mouseleave" (fn (mut this.isDateHovered) false)}}>
{{gh-format-post-time @post.updatedAtUTC draft=true}} {{gh-format-post-time @post.updatedAtUTC draft=true}}
@ -78,7 +78,14 @@
<span class="status-dot"></span> <span class="status-dot"></span>
Scheduled Scheduled
{{#if this.isHovered}} {{#if this.isHovered}}
<span class="schedule-details" {{css-transition "anim-fade-in-scale"}}>to be published {{if @post.newsletter "and sent "}}{{this.scheduledText}} to {{humanize-recipient-filter @post.emailSegment}}</span> <span class="schedule-details" {{css-transition "anim-fade-in-scale"}}>
{{#if @post.emailOnly}}
to be sent
{{else}}
to be published {{if @post.newsletter "and sent "}}
{{/if}}
{{this.scheduledText}} to {{humanize-recipient-filter @post.emailSegment}}
</span>
{{/if}} {{/if}}
</span> </span>
{{/if}} {{/if}}
@ -96,7 +103,7 @@
{{#if @post.didEmailFail}} {{#if @post.didEmailFail}}
but failed to send newsletter but failed to send newsletter
{{else if @post.hasBeenEmailed}} {{else if @post.hasBeenEmailed}}
and sent and sent
{{#if this.isHovered}} {{#if this.isHovered}}
<span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span> <span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span>
{{/if}} {{/if}}
@ -109,7 +116,7 @@
{{#if @post.didEmailFail}} {{#if @post.didEmailFail}}
Failed to send newsletter Failed to send newsletter
{{else}} {{else}}
Sent Sent
{{#if this.isHovered}} {{#if this.isHovered}}
<span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span> <span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span>
{{/if}} {{/if}}
@ -140,7 +147,7 @@
{{!-- Empty on purpose --}} {{!-- Empty on purpose --}}
</LinkTo> </LinkTo>
{{/if}} {{/if}}
{{!-- Clicked / Conversions column --}} {{!-- Clicked / Conversions column --}}
{{#if @post.showEmailClickAnalytics }} {{#if @post.showEmailClickAnalytics }}
<LinkTo @route="members" @query={{hash filterParam=(concat "clicked_links.post_id:" @post.id) }} class="permalink gh-list-data gh-post-list-metrics"> <LinkTo @route="members" @query={{hash filterParam=(concat "clicked_links.post_id:" @post.id) }} class="permalink gh-list-data gh-post-list-metrics">