2024-08-15 13:22:32 +03:00
|
|
|
<div class="modal-content">
|
|
|
|
<header class="modal-header">
|
|
|
|
<h1>
|
|
|
|
{{#if this.post.isScheduled}}
|
|
|
|
<span>All set!</span>
|
|
|
|
{{else}}
|
|
|
|
<span>
|
|
|
|
{{#if this.showPostCount}}
|
|
|
|
Boom! It's out there.
|
|
|
|
{{else}}
|
2024-08-22 17:49:29 +03:00
|
|
|
Your post is published.
|
2024-08-15 13:22:32 +03:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span>
|
2024-08-26 12:02:00 +03:00
|
|
|
{{#if this.post.isPost}}
|
|
|
|
{{#if this.post.emailOnly}}
|
|
|
|
Your email has been sent.
|
2024-08-15 13:22:32 +03:00
|
|
|
{{else}}
|
2024-08-26 12:02:00 +03:00
|
|
|
{{#if this.showPostCount}}
|
|
|
|
That's {{format-number this.postCount}} {{gh-pluralize this.postCount "post" without-count=true}} published.
|
|
|
|
{{else}}
|
|
|
|
Spread the word!
|
|
|
|
{{/if}}
|
2024-08-15 13:22:32 +03:00
|
|
|
{{/if}}
|
2024-08-26 12:02:00 +03:00
|
|
|
{{else}}
|
|
|
|
Your page is published.
|
2024-08-15 13:22:32 +03:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
|
|
|
</header>
|
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{#if (and this.post.isPublished (not this.post.emailOnly))}}
|
|
|
|
{{else}}
|
|
|
|
<div class="modal-body email">
|
|
|
|
{{#if this.post.isSent}}
|
|
|
|
It
|
2024-08-15 13:22:32 +03:00
|
|
|
{{else}}
|
2024-08-26 12:02:00 +03:00
|
|
|
{{#if this.post.emailOnly}}
|
|
|
|
Your email
|
|
|
|
{{else}}
|
|
|
|
Your {{this.post.displayName}}
|
|
|
|
{{/if}}
|
2024-08-22 17:49:29 +03:00
|
|
|
{{/if}}
|
|
|
|
{{if this.post.isScheduled "will be" "was"}}
|
|
|
|
{{#if this.post.emailOnly}}
|
|
|
|
sent to
|
|
|
|
{{else if this.post.willEmail}}
|
|
|
|
published on your site, and sent to
|
|
|
|
{{else}}
|
|
|
|
published on your site
|
|
|
|
{{/if}}
|
2024-08-15 13:22:32 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{#if (or this.post.hasEmail this.post.willEmail)}}
|
|
|
|
{{#let (members-count-fetcher query=(hash filter=this.post.fullRecipientFilter)) as |countFetcher|}}
|
|
|
|
<strong class="nowrap">
|
|
|
|
{{if (eq @recipientType "all") "all"}}
|
2024-08-15 13:22:32 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{format-number countFetcher.count}}
|
2024-08-15 13:22:32 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{!-- @recipientType = free/paid/all/specific --}}
|
|
|
|
{{if (not-eq @recipientType "all") @recipientType}}
|
2024-08-15 13:22:32 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{gh-pluralize countFetcher.count "subscriber" without-count=true}}
|
|
|
|
</strong>
|
2024-08-15 13:22:32 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
of <strong>{{this.post.newsletter.name}}</strong>
|
2024-08-15 13:22:32 +03:00
|
|
|
{{/let}}
|
|
|
|
{{/if}}
|
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{#let (moment-site-tz this.post.publishedAtUTC) as |publishedAt|}}
|
|
|
|
on
|
|
|
|
<strong>{{moment-format publishedAt "D MMM YYYY"}}</strong>
|
|
|
|
at
|
|
|
|
<strong>{{moment-format publishedAt "HH:mm"}}</strong>.
|
|
|
|
{{/let}}
|
|
|
|
</div>
|
2024-08-15 13:22:32 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{#if this.post.emailOnly}}
|
|
|
|
<footer class="modal-footer-email">
|
2024-08-15 13:22:32 +03:00
|
|
|
<button
|
|
|
|
class="gh-btn gh-btn-primary dismiss"
|
|
|
|
type="button"
|
|
|
|
{{on "click" @close}}
|
|
|
|
{{on "mousedown" (optional this.noop)}}
|
|
|
|
>
|
2024-08-22 17:49:29 +03:00
|
|
|
<span>Close</span>
|
2024-08-15 13:22:32 +03:00
|
|
|
</button>
|
2024-08-22 17:49:29 +03:00
|
|
|
</footer>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
|
|
|
|
|
|
|
{{#unless this.post.emailOnly}}
|
|
|
|
<div class="gh-post-card">
|
|
|
|
{{#if this.post.featureImage}}
|
|
|
|
<figure class="modal-image">
|
|
|
|
<img src="{{this.post.featureImage}}" alt="{{this.post.title}}">
|
|
|
|
</figure>
|
|
|
|
{{else if this.post.twitterImage}}
|
|
|
|
<figure class="modal-image">
|
|
|
|
<img src="{{this.post.twitterImage}}" alt="{{this.post.title}}">
|
|
|
|
</figure>
|
|
|
|
{{else if this.post.ogImage}}
|
|
|
|
<figure class="modal-image">
|
|
|
|
<img src="{{this.post.ogImage}}" alt="{{this.post.title}}">
|
|
|
|
</figure>
|
2024-08-15 13:22:32 +03:00
|
|
|
{{/if}}
|
2024-08-22 17:49:29 +03:00
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<h2>{{this.post.title}}</h2>
|
|
|
|
{{#if this.post.excerpt}}
|
|
|
|
<p class="post-excerpt">{{this.post.excerpt}}</p>
|
|
|
|
{{/if}}
|
2024-08-26 12:02:00 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
<div class="gh-post-details">
|
|
|
|
{{#if (get-setting "icon")}}
|
|
|
|
<div class="gh-post-bookmark-site-icon">
|
|
|
|
<img src={{get-setting "icon"}} alt="" role="presentation" />
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (get-setting "title")}}
|
|
|
|
<div class="gh-post-bookmark-site-name">{{get-setting "title"}}</div>
|
|
|
|
{{/if}}
|
2024-08-26 12:02:00 +03:00
|
|
|
<div class="gh-post-bookmark-authors">{{post-author-names this.post}}</div>
|
2024-08-22 17:49:29 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="modal-footer">
|
|
|
|
{{#if (and this.post.isPublished (not this.post.emailOnly))}}
|
|
|
|
<div class="share-buttons">
|
|
|
|
<a href="https://twitter.com/intent/tweet?text={{this.encodedTitle}}&url={{this.encodedUrl}}" class="gh-btn twitter" target="_blank" rel="noopener noreferrer" title="Share on Twitter">
|
|
|
|
<span>{{svg-jar "social-x"}}</span>
|
|
|
|
</a>
|
|
|
|
<a href="https://threads.net/intent/post?text={{this.encodedTitleAndUrl}}" class="gh-btn threads" target="_blank" rel="noopener noreferrer" title="Share on Threads">
|
|
|
|
<span>{{svg-jar "social-threads"}}</span>
|
|
|
|
</a>
|
|
|
|
<a href="https://www.facebook.com/sharer/sharer.php?u={{this.encodedUrl}}" class="gh-btn facebook" target="_blank" rel="noopener noreferrer" title="Share on Facebook">
|
|
|
|
<span>{{svg-jar "social-facebook"}}</span>
|
|
|
|
</a>
|
|
|
|
<a href="http://www.linkedin.com/shareArticle?mini=true&title={{this.encodedTitle}}&url={{this.encodedUrl}}" class="gh-btn linkedin" target="_blank" rel="noopener noreferrer" title="Share on LinkedIn">
|
|
|
|
<span>{{svg-jar "social-linkedin"}}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<GhTaskButton
|
|
|
|
@showIcon={{true}}
|
|
|
|
@idleIcon="link"
|
|
|
|
@buttonText="Copy link"
|
|
|
|
@title="Copy link"
|
2024-08-26 12:02:00 +03:00
|
|
|
@task={{this.handleCopyLink}}
|
2024-08-22 17:49:29 +03:00
|
|
|
@successText="Link copied"
|
|
|
|
@class="gh-btn gh-btn-primary gh-btn-icon copy-link" />
|
|
|
|
{{else}}
|
|
|
|
{{#if (and this.post.isScheduled (not this.post.emailOnly))}}
|
|
|
|
<GhTaskButton
|
|
|
|
@buttonText="Copy preview link"
|
|
|
|
@task={{this.handleCopyPreviewLink}}
|
|
|
|
@showIcon={{true}}
|
|
|
|
@idleIcon="link"
|
|
|
|
@successText="Preview link copied"
|
|
|
|
@class="gh-btn gh-btn-icon copy-preview-link" />
|
|
|
|
|
|
|
|
<button
|
|
|
|
class="gh-btn gh-btn-primary dismiss"
|
|
|
|
type="button"
|
|
|
|
{{on "click" @close}}
|
|
|
|
{{on "mousedown" (optional this.noop)}}
|
|
|
|
>
|
|
|
|
<span>Close</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
<button
|
|
|
|
class="gh-btn gh-btn-primary dismiss"
|
|
|
|
type="button"
|
|
|
|
{{on "click" @close}}
|
|
|
|
{{on "mousedown" (optional this.noop)}}
|
|
|
|
>
|
|
|
|
<span>Close</span>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
2024-08-26 12:02:00 +03:00
|
|
|
|
2024-08-22 17:49:29 +03:00
|
|
|
{{/if}}
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2024-08-15 13:22:32 +03:00
|
|
|
</div>
|