2022-09-13 12:57:05 +03:00
|
|
|
{{!-- template-lint-disable no-invalid-interactive --}}
|
2022-09-13 17:01:03 +03:00
|
|
|
<li class="gh-list-row gh-posts-list-item gh-posts-list-item-labs gh-post-list-plain-status"
|
2022-09-13 12:57:05 +03:00
|
|
|
{{on "mouseover" this.mouseOver}}
|
|
|
|
{{on "mouseleave" this.mouseLeave}}
|
|
|
|
...attributes
|
|
|
|
>
|
|
|
|
|
|
|
|
{{!-- Title column --}}
|
|
|
|
{{#if (and this.session.user.isContributor @post.isPublished)}}
|
|
|
|
<a href={{@post.url}} class="permalink gh-list-data gh-post-list-title" target="_blank" rel="noopener noreferrer">
|
|
|
|
<h3 class="gh-content-entry-title">
|
|
|
|
{{@post.title}} {{svg-jar "external" class="gh-post-list-external"}}
|
|
|
|
</h3>
|
|
|
|
{{#unless @hideAuthor }}
|
2022-09-14 13:50:28 +03:00
|
|
|
<p class="gh-content-entry-meta">
|
|
|
|
<span class="gh-content-entry-author">
|
|
|
|
By {{post-author-names @post}}
|
2022-09-13 12:57:05 +03:00
|
|
|
|
|
|
|
{{#if @post.primaryTag}}
|
|
|
|
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-09-14 13:50:28 +03:00
|
|
|
•
|
|
|
|
</span>
|
|
|
|
<span class="gh-content-entry-date">
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
{{gh-format-post-time @post.updatedAtUTC "D MMM YYYY"}}
|
|
|
|
{{else}}
|
|
|
|
{{gh-format-post-time @post.updatedAtUTC draft=true}}
|
|
|
|
{{/if}}
|
2022-09-13 12:57:05 +03:00
|
|
|
</span>
|
|
|
|
</p>
|
2022-09-14 13:50:28 +03:00
|
|
|
<p class="gh-content-entry-status">
|
|
|
|
<span class="published">
|
2022-09-13 17:01:03 +03:00
|
|
|
Published
|
|
|
|
{{#if @post.hasEmail}}
|
2022-09-14 14:21:22 +03:00
|
|
|
{{#if this.isHovered}}
|
2022-09-14 13:50:28 +03:00
|
|
|
and sent to 2,467 free subscribers
|
|
|
|
{{else}}
|
|
|
|
and sent
|
|
|
|
{{/if}}
|
2022-09-13 17:01:03 +03:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</p>
|
2022-09-13 12:57:05 +03:00
|
|
|
{{/unless}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-title">
|
|
|
|
<h3 class="gh-content-entry-title">
|
|
|
|
{{@post.title}}
|
|
|
|
</h3>
|
|
|
|
{{#unless @hideAuthor }}
|
2022-09-13 17:01:03 +03:00
|
|
|
<p class="gh-content-entry-meta">
|
2022-09-14 13:50:28 +03:00
|
|
|
<span class="gh-content-entry-author">
|
|
|
|
By {{post-author-names @post}}
|
2022-09-13 12:57:05 +03:00
|
|
|
|
2022-09-14 13:50:28 +03:00
|
|
|
{{#if @post.primaryTag}}
|
|
|
|
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
|
|
|
|
{{/if}}
|
|
|
|
•
|
|
|
|
</span>
|
|
|
|
<span class="gh-content-entry-date">
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
{{gh-format-post-time @post.updatedAtUTC "D MMM YYYY"}}
|
|
|
|
{{else}}
|
|
|
|
{{gh-format-post-time @post.updatedAtUTC draft=true}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-09-13 12:57:05 +03:00
|
|
|
</p>
|
2022-09-14 13:50:28 +03:00
|
|
|
<p class="gh-content-entry-status">
|
2022-09-13 12:57:05 +03:00
|
|
|
{{#if @post.isScheduled}}
|
2022-09-15 11:08:51 +03:00
|
|
|
<span class="scheduled" title="Scheduled">
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
Scheduled to be published {{if @post.newsletter "and sent "}}{{this.scheduledText}} to {{@post.emailSegment}} subscribers
|
|
|
|
{{else}}
|
|
|
|
Scheduled
|
|
|
|
{{/if}}
|
2022-09-13 17:01:03 +03:00
|
|
|
</span>
|
2022-09-13 12:57:05 +03:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if @post.isDraft}}
|
2022-09-14 13:50:28 +03:00
|
|
|
<span class="draft">
|
2022-09-13 17:01:03 +03:00
|
|
|
Draft
|
|
|
|
</span>
|
2022-09-13 12:57:05 +03:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if @post.isPublished}}
|
2022-09-14 13:50:28 +03:00
|
|
|
<span class="published">
|
2022-09-13 17:01:03 +03:00
|
|
|
Published
|
|
|
|
{{#if @post.hasEmail}}
|
2022-09-14 14:21:22 +03:00
|
|
|
{{#if this.isHovered}}
|
2022-09-14 13:50:28 +03:00
|
|
|
and sent to 2,467 free subscribers
|
|
|
|
{{else}}
|
|
|
|
and sent
|
|
|
|
{{/if}}
|
2022-09-13 17:01:03 +03:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-09-13 12:57:05 +03:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if @post.isSent}}
|
2022-09-14 13:50:28 +03:00
|
|
|
<span class="sent">
|
2022-09-14 14:21:22 +03:00
|
|
|
{{#if this.isHovered}}
|
2022-09-14 13:50:28 +03:00
|
|
|
Sent to 2,467 free subscribers
|
|
|
|
{{else}}
|
|
|
|
Sent
|
|
|
|
{{/if}}
|
2022-09-13 17:01:03 +03:00
|
|
|
</span>
|
2022-09-13 12:57:05 +03:00
|
|
|
{{/if}}
|
2022-09-13 17:01:03 +03:00
|
|
|
</p>
|
|
|
|
{{/unless}}
|
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
2022-09-13 12:57:05 +03:00
|
|
|
|
|
|
|
{{!-- Opens and clicks columns --}}
|
|
|
|
{{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled") (not this.session.user.isContributor) this.feature.emailAnalytics (eq @post.displayName "post"))}}
|
|
|
|
{{!-- Opens column --}}
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-opens">
|
|
|
|
{{#if (and @post.email.trackOpens (eq @post.email.status "submitted"))}}
|
2022-09-14 14:21:22 +03:00
|
|
|
<div class="flex flex-column">
|
|
|
|
<span class="gh-content-email-stats">
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
1,283
|
|
|
|
{{else}}
|
|
|
|
52%
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span class="gh-content-entry-meta">
|
|
|
|
opens
|
|
|
|
</span>
|
2022-09-13 12:57:05 +03:00
|
|
|
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{@post.email.openRate}}% opens</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
|
|
|
|
{{!-- Clicks column --}}
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-clicks">
|
2022-09-14 13:50:28 +03:00
|
|
|
{{#if (and @post.email.trackOpens (eq @post.email.status "submitted"))}}
|
2022-09-14 14:21:22 +03:00
|
|
|
<div class="flex flex-column">
|
|
|
|
<span class="gh-content-email-stats">
|
|
|
|
{{#if this.isHovered}}
|
|
|
|
444
|
|
|
|
{{else}}
|
|
|
|
18%
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span class="gh-content-entry-meta">
|
|
|
|
clicks
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-09-14 13:50:28 +03:00
|
|
|
{{/if}}
|
2022-09-13 12:57:05 +03:00
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{!-- Button column --}}
|
2022-09-13 17:01:03 +03:00
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-cta">
|
2022-09-14 13:50:28 +03:00
|
|
|
{{#if (or @post.isSent @post.isPublished)}}
|
2022-09-13 17:01:03 +03:00
|
|
|
<LinkTo @route="posts.analytics" @model={{@post}} class="gh-btn gh-btn-outline gh-btn-icon">
|
|
|
|
<span>
|
|
|
|
{{svg-jar "stats" class="stats"}} Stats
|
|
|
|
</span>
|
|
|
|
</LinkTo>
|
|
|
|
{{else}}
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="gh-btn gh-btn-outline gh-btn-icon">
|
|
|
|
<span>
|
|
|
|
{{svg-jar "pen" class="edit"}} Edit
|
|
|
|
</span>
|
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
|
2022-09-13 12:57:05 +03:00
|
|
|
</li>
|