2020-07-01 20:39:03 +03:00
|
|
|
|
<li class="gh-list-row gh-posts-list-item" ...attributes>
|
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-featured" @title="Edit this post">
|
|
|
|
|
{{#if @post.isFeatured}}
|
|
|
|
|
<span data-tooltip="Featured" class="dib pl1 pr1 nr1 nl1">{{svg-jar "star-filled" class="fill-blue w3 h3"}}</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</LinkTo>
|
2017-02-03 17:00:42 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-title" @title="Edit this post">
|
|
|
|
|
<h3 class="gh-content-entry-title">
|
|
|
|
|
{{@post.title}}
|
|
|
|
|
</h3>
|
|
|
|
|
<p>
|
|
|
|
|
<span class="gh-content-entry-meta">
|
|
|
|
|
By <span class="midgrey-l2 fw5">{{this.authorNames}}</span>
|
2019-11-21 02:37:37 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if @post.primaryTag}}
|
|
|
|
|
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
|
|
|
|
|
{{/if}}
|
2019-11-14 15:53:43 +03:00
|
|
|
|
|
2020-10-27 11:33:27 +03:00
|
|
|
|
{{#if (eq @post.email.status "submitted")}}
|
|
|
|
|
• Sent to <span class="midgrey-l2 fw5">{{gh-pluralize @post.email.emailCount "member"}}</span>
|
|
|
|
|
{{/if}}
|
2020-11-06 21:54:27 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if @post.isScheduled}}
|
2020-07-01 22:28:47 +03:00
|
|
|
|
– <span class="gh-schedule-time">Will be published {{this.scheduledText}}</span>
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
</LinkTo>
|
|
|
|
|
|
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-status" @title="Edit this post">
|
|
|
|
|
<div class="flex items-center">
|
2020-07-01 20:30:00 +03:00
|
|
|
|
{{#if @post.isScheduled}}
|
2020-07-01 20:39:03 +03:00
|
|
|
|
<span class="gh-content-status-draft gh-badge nowrap">
|
|
|
|
|
Scheduled
|
|
|
|
|
</span>
|
2019-11-14 15:53:43 +03:00
|
|
|
|
{{/if}}
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if @post.isDraft}}
|
|
|
|
|
<span class="gh-content-status-draft gh-badge gh-badge-purple nowrap">
|
|
|
|
|
Draft
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if @post.isPublished}}
|
2020-07-01 22:28:47 +03:00
|
|
|
|
<span class="gh-content-status-published nowrap">
|
2020-07-01 20:39:03 +03:00
|
|
|
|
Published
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2019-11-14 15:53:43 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if this.session.user.isOwnerOrAdmin}}
|
2020-11-06 21:54:27 +03:00
|
|
|
|
{{#if (or @post.email (and @post.isScheduled this.sendEmailWhenPublished))}}
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if (eq @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-26 15:20:49 +03:00
|
|
|
|
</span>
|
|
|
|
|
{{else}}
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{#if @post.isScheduled}}
|
2020-07-01 22:28:47 +03:00
|
|
|
|
<span title="To be send by email" data-tooltip="To be sent by email" class="gh-content-status-emailed scheduled">
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{svg-jar "send-email" class="stroke-green-d2"}}
|
|
|
|
|
</span>
|
|
|
|
|
{{else}}
|
2020-07-01 22:28:47 +03:00
|
|
|
|
<span title="Sent by email" data-tooltip="Sent by email" class="gh-content-status-emailed">
|
2020-07-01 20:39:03 +03:00
|
|
|
|
{{svg-jar "send-email" class="stroke-midgrey"}}
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
2019-11-26 15:20:49 +03:00
|
|
|
|
{{/if}}
|
2019-11-25 19:44:18 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
2020-07-01 20:39:03 +03:00
|
|
|
|
</div>
|
|
|
|
|
</LinkTo>
|
2017-11-10 20:36:27 +03:00
|
|
|
|
|
2020-07-01 20:39:03 +03:00
|
|
|
|
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-updated" @title="Edit this post">
|
|
|
|
|
<span class="nowrap">{{gh-format-post-time @post.updatedAtUTC draft=true}}</span>
|
|
|
|
|
</LinkTo>
|
|
|
|
|
</li>
|