2020-01-16 18:14:03 +03:00
|
|
|
|
<LinkTo @route="editor.edit" @models={{array this.post.displayName this.post.id}} class="permalink gh-list-data gh-post-list-featured" @title="Edit this post">
|
2019-06-18 13:47:21 +03:00
|
|
|
|
{{#if this.isFeatured}}
|
|
|
|
|
<span data-tooltip="Featured" class="dib pl1 pr1 nr1 nl1">{{svg-jar "star-filled" class="fill-blue w3 h3"}}</span>
|
|
|
|
|
{{/if}}
|
2020-01-16 18:14:03 +03:00
|
|
|
|
</LinkTo>
|
2017-02-03 17:00:42 +03:00
|
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
|
<LinkTo @route="editor.edit" @models={{array this.post.displayName this.post.id}} class="permalink gh-list-data gh-post-list-title" @title="Edit this post">
|
2019-06-18 13:47:21 +03:00
|
|
|
|
<h3 class="gh-content-entry-title">
|
|
|
|
|
{{this.post.title}}
|
|
|
|
|
</h3>
|
2019-11-14 15:53:43 +03:00
|
|
|
|
<p>
|
|
|
|
|
<span class="gh-content-entry-meta">
|
|
|
|
|
By <span class="midgrey-l2 fw5">{{this.authorNames}}</span>
|
2019-11-21 02:37:37 +03:00
|
|
|
|
|
2019-11-14 15:53:43 +03:00
|
|
|
|
{{#if this.primaryTag}}
|
|
|
|
|
in <span class="midgrey-l2 fw5">{{this.primaryTag}}</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
|
{{#if this.isScheduled}}
|
2019-11-14 15:53:43 +03:00
|
|
|
|
– <span class="gh-schedule-time">Scheduled to be published and sent {{gh-format-post-time this.post.publishedAtUTC scheduled=true}}</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
2020-01-16 18:14:03 +03:00
|
|
|
|
</LinkTo>
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
|
<LinkTo @route="editor.edit" @models={{array this.post.displayName this.post.id}} class="permalink gh-list-data gh-post-list-status" @title="Edit this post">
|
2019-11-14 15:53:43 +03:00
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
{{#if this.isScheduled}}
|
|
|
|
|
<span class="gh-content-status-draft gh-badge nowrap">
|
|
|
|
|
Scheduled
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2019-11-14 15:53:43 +03:00
|
|
|
|
{{#if this.isDraft}}
|
|
|
|
|
<span class="gh-content-status-draft gh-badge gh-badge-purple nowrap">
|
|
|
|
|
Draft
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2019-11-14 15:53:43 +03:00
|
|
|
|
{{#if (and this.isPublished (not this.post.page))}}
|
|
|
|
|
<span class="gh-content-status-published nowrap" title="Post has been sent by email">
|
|
|
|
|
Published
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2019-11-26 15:20:49 +03:00
|
|
|
|
{{#if this.session.user.isOwnerOrAdmin}}
|
|
|
|
|
{{#if (or this.post.email (and this.post.isScheduled this.post.sendEmailWhenPublished))}}
|
|
|
|
|
{{#if (eq this.post.email.status "failed")}}
|
|
|
|
|
<span data-tooltip="Failed to send post by email" class="gh-content-status-emailed error">
|
|
|
|
|
{{svg-jar "send-email" class="stroke-red"}}
|
2019-11-25 19:44:18 +03:00
|
|
|
|
</span>
|
|
|
|
|
{{else}}
|
2019-11-26 15:20:49 +03:00
|
|
|
|
{{#if this.isScheduled}}
|
|
|
|
|
<span data-tooltip="To be sent by email" class="gh-content-status-emailed scheduled">
|
|
|
|
|
{{svg-jar "send-email" class="stroke-green-d2"}}
|
|
|
|
|
</span>
|
|
|
|
|
{{else}}
|
|
|
|
|
<span data-tooltip="Sent by email" class="gh-content-status-emailed">
|
|
|
|
|
{{svg-jar "send-email" class="stroke-midgrey"}}
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2019-11-25 19:44:18 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
2019-11-14 15:53:43 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2020-01-16 18:14:03 +03:00
|
|
|
|
</LinkTo>
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
|
<LinkTo @route="editor.edit" @models={{array this.post.displayName this.post.id}} class="permalink gh-list-data gh-post-list-updated" @title="Edit this post">
|
2019-06-18 13:47:21 +03:00
|
|
|
|
<span class="nowrap">{{gh-format-post-time this.post.updatedAtUTC draft=true}}</span>
|
2020-01-16 18:14:03 +03:00
|
|
|
|
</LinkTo>
|