2022-02-15 14:41:26 +03:00
|
|
|
{{!-- template-lint-disable no-invalid-interactive --}}
|
2020-11-26 20:19:05 +03:00
|
|
|
<li class="gh-list-row gh-posts-list-item"
|
|
|
|
{{on "mouseover" this.mouseOver}}
|
|
|
|
{{on "mouseleave" this.mouseLeave}}
|
|
|
|
...attributes
|
|
|
|
>
|
2019-11-14 15:53:43 +03:00
|
|
|
|
2022-02-01 20:59:20 +03:00
|
|
|
{{#if (and this.session.user.isContributor @post.isPublished)}}
|
2022-02-02 19:09:43 +03:00
|
|
|
<a href={{@post.url}} class="permalink gh-list-data gh-post-list-title" target="_blank" rel="noopener noreferrer">
|
2022-02-01 20:59:20 +03:00
|
|
|
<h3 class="gh-content-entry-title">
|
|
|
|
{{@post.title}} {{svg-jar "external" class="gh-post-list-external"}}
|
|
|
|
</h3>
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#unless @hideAuthor }}
|
|
|
|
<p>
|
|
|
|
<span class="gh-content-entry-meta">
|
2022-05-10 15:26:01 +03:00
|
|
|
By <span class="midgrey-l2 fw5">{{post-author-names @post}}</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.primaryTag}}
|
|
|
|
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
|
|
|
|
{{/if}}
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
• <span data-tooltip="{{gh-format-post-time @post.updatedAtUTC "D MMM YYYY"}}">{{gh-format-post-time @post.updatedAtUTC draft=true}}</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
{{/unless}}
|
2022-02-01 20:59:20 +03:00
|
|
|
</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>
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#unless @hideAuthor }}
|
|
|
|
<p>
|
|
|
|
<span class="gh-content-entry-meta">
|
2022-05-10 15:26:01 +03:00
|
|
|
By <span class="midgrey-l2 fw5">{{post-author-names @post}}</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.primaryTag}}
|
|
|
|
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
|
|
|
|
{{/if}}
|
2020-11-06 21:54:27 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
• <span data-tooltip="{{gh-format-post-time @post.updatedAtUTC "D MMM YYYY"}}">{{gh-format-post-time @post.updatedAtUTC draft=true}}</span>
|
2020-07-01 20:39:03 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
{{/unless}}
|
2022-02-01 20:59:20 +03:00
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-02-11 11:29:11 +03:00
|
|
|
{{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled") (not this.session.user.isContributor))}}
|
2022-01-27 14:40:11 +03:00
|
|
|
{{#if (and this.feature.emailAnalytics (eq @post.displayName "post"))}}
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-recipients">
|
|
|
|
<div class="flex fw4">
|
2022-05-16 11:18:46 +03:00
|
|
|
{{#if (eq @post.email.status "submitted")}}
|
|
|
|
<span class="flex" data-tooltip="{{capitalize @post.email.recipientFilter}} members">
|
|
|
|
<span class="darkgrey fw5 gh-content-email-stats">{{format-number @post.email.emailCount}}</span>
|
|
|
|
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{gh-pluralize @post.email.emailCount "send"}}</span>
|
|
|
|
</span>
|
2022-01-27 14:40:11 +03:00
|
|
|
{{/if}}
|
2020-11-26 20:19:05 +03:00
|
|
|
</div>
|
2022-01-27 14:40:11 +03:00
|
|
|
</LinkTo>
|
|
|
|
|
|
|
|
<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"))}}
|
|
|
|
<div class="flex">
|
|
|
|
<span class="darkgrey fw5 gh-content-email-stats">
|
|
|
|
{{#if this.isHovered}}
|
2022-02-15 10:27:30 +03:00
|
|
|
{{format-number @post.email.openedCount}}
|
2022-01-27 14:40:11 +03:00
|
|
|
{{else}}
|
|
|
|
{{@post.email.openRate}}%
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{@post.email.openRate}}% opens</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
2020-11-26 20:19:05 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#unless @hideStatusColumn }}
|
|
|
|
{{#if (and this.session.user.isContributor @post.isPublished)}}
|
|
|
|
<a href={{@post.url}} class="permalink gh-list-data gh-post-list-status" target="_blank" rel="noopener noreferrer">
|
|
|
|
<div class="flex items-center">
|
|
|
|
{{#if @post.isScheduled}}
|
2022-05-16 11:18:46 +03:00
|
|
|
<span class="gh-content-status-scheduled gh-badge nowrap" title="Scheduled" data-tooltip="{{capitalize this.scheduledText}} to {{@post.emailSegment}} members">
|
2022-03-24 20:14:51 +03:00
|
|
|
Scheduled
|
2022-05-16 11:18:46 +03:00
|
|
|
{{#if @post.newsletter}}
|
2022-03-24 20:14:51 +03:00
|
|
|
{{svg-jar "email-stroke"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.isDraft}}
|
|
|
|
<span class="gh-content-status-draft gh-badge gh-badge-pink nowrap">
|
|
|
|
Draft
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.isPublished}}
|
|
|
|
<span class="gh-content-status-published nowrap">
|
|
|
|
Published
|
|
|
|
{{#if @post.hasEmail}}
|
|
|
|
{{svg-jar "email-stroke"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.isSent}}
|
|
|
|
<span class="gh-content-status-emailed nowrap">
|
|
|
|
{{svg-jar "email-stroke"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-status">
|
|
|
|
<div class="flex items-center">
|
|
|
|
{{#if @post.isScheduled}}
|
2022-05-16 11:18:46 +03:00
|
|
|
<span class="gh-content-status-scheduled gh-badge nowrap" title="Scheduled" data-tooltip="{{capitalize this.scheduledText}} to {{@post.emailSegment}} members">
|
2022-03-24 20:14:51 +03:00
|
|
|
Scheduled
|
2022-05-16 11:18:46 +03:00
|
|
|
{{#if @post.newsletter}}
|
2022-03-24 20:14:51 +03:00
|
|
|
{{svg-jar "email-stroke"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.isDraft}}
|
|
|
|
<span class="gh-content-status-draft gh-badge gh-badge-pink nowrap">
|
|
|
|
Draft
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2022-02-01 20:59:20 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.isPublished}}
|
|
|
|
<span class="gh-content-status-published nowrap">
|
|
|
|
Published
|
|
|
|
{{#if @post.hasEmail}}
|
|
|
|
{{svg-jar "email-stroke"}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
2022-02-01 20:59:20 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
{{#if @post.isSent}}
|
|
|
|
<span class="gh-content-status-emailed nowrap">
|
|
|
|
{{svg-jar "email-stroke"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
2022-05-16 11:18:46 +03:00
|
|
|
</li>
|