Ghost/ghost/admin/app/templates/components/gh-posts-list-item.hbs

55 lines
2.2 KiB
Handlebars
Raw Normal View History

{{#link-to "editor.edit" this.post.displayName this.post.id class="permalink gh-list-data gh-post-list-featured" title="Edit this post"}}
{{#if this.isFeatured}}
<span data-tooltip="Featured" class="dib pl1 pr1 nr1 nl1">{{svg-jar "star-filled" class="fill-blue w3 h3"}}</span>
{{/if}}
{{/link-to}}
{{#link-to "editor.edit" this.post.displayName this.post.id class="permalink gh-list-data gh-post-list-title" title="Edit this post"}}
<h3 class="gh-content-entry-title">
{{this.post.title}}
</h3>
{{#if isScheduled}}
<p>
2019-11-08 12:46:03 +03:00
<span class="gh-schedule-time">Scheduled to be published and sent {{gh-format-post-time this.post.publishedAtUTC scheduled=true}}</span>
<span class="gh-schedule-subtext">&dash; {{this.subText}}</span>
</p>
{{else}}
<p>
{{this.subText}}
</p>
{{/if}}
{{/link-to}}
{{#link-to "editor.edit" this.post.displayName this.post.id class="permalink gh-list-data gh-post-list-status" title="Edit this post"}}
{{#if this.isScheduled}}
2019-11-08 13:17:28 +03:00
<span class="gh-content-status-draft gh-badge nowrap">
Scheduled
2019-11-08 13:17:28 +03:00
</span>
{{/if}}
{{#if this.isDraft}}
2019-11-08 13:17:28 +03:00
<span class="gh-content-status-draft gh-badge gh-badge-purple nowrap">
Draft
</span>
{{/if}}
{{#if (and this.isPublished (not this.post.page))}}
2019-11-08 13:17:28 +03:00
<span class="gh-content-status-published nowrap" title="Post has been sent by email">
Published
2019-11-08 13:17:28 +03:00
</span>
2019-11-08 12:44:56 +03:00
{{/if}}
{{/link-to}}
{{#link-to "editor.edit" this.post.displayName this.post.id class="permalink gh-list-data gh-post-list-updated" title="Edit this post"}}
<span class="nowrap">{{gh-format-post-time this.post.updatedAtUTC draft=true}}</span>
{{/link-to}}
{{#link-to "editor.edit" this.post.displayName this.post.id class="permalink gh-list-data gh-post-list-author" title="Edit this post"}}
<span class="gh-content-entry-author">{{this.authorNames}}</span>
2019-11-08 13:17:28 +03:00
{{/link-to}}
{{#link-to "editor.edit" this.post.displayName this.post.id class="permalink gh-list-data gh-post-list-email" title="Post has been sent by email"}}
{{#if (or this.post.email (and this.post.isScheduled this.post.sendEmailWhenPublished))}}
2019-11-08 13:17:28 +03:00
{{svg-jar "email" class="w4 h4 fill-midgrey nudge-top--4"}}
{{/if}}
{{/link-to}}