mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 03:22:21 +03:00
f8c75a1e22
refs https://github.com/TryGhost/Team/issues/954 - This is a first iteration before replacing the status with an email icon in the future. It's meant to signal visually the current status instead of leaving it completely blank
81 lines
3.4 KiB
Handlebars
81 lines
3.4 KiB
Handlebars
<li class="gh-list-row gh-posts-list-item"
|
|
{{on "mouseover" this.mouseOver}}
|
|
{{on "mouseleave" this.mouseLeave}}
|
|
...attributes
|
|
>
|
|
<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>
|
|
<p>
|
|
<span class="gh-content-entry-meta">
|
|
By <span class="midgrey-l2 fw5">{{this.authorNames}}</span>
|
|
|
|
{{#if @post.primaryTag}}
|
|
in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
|
|
{{/if}}
|
|
|
|
• <span data-tooltip="{{gh-format-post-time @post.updatedAtUTC "D MMM YYYY"}}">{{gh-format-post-time @post.updatedAtUTC draft=true}}</span>
|
|
|
|
</span>
|
|
</p>
|
|
</LinkTo>
|
|
|
|
{{#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">
|
|
{{#if (or @post.email @post.willEmail)}}
|
|
{{#if (eq @post.email.status "submitted")}}
|
|
<span class="flex" data-tooltip="{{capitalize @post.email.recipientFilter}} members">
|
|
<span class="darkgrey fw5 gh-content-email-stats">{{@post.email.emailCount}}</span>
|
|
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{gh-pluralize @post.email.emailCount "send"}}</span>
|
|
</span>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
</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}}
|
|
{{@post.email.openedCount}}
|
|
{{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}}
|
|
|
|
<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}}
|
|
<span class="gh-content-status-draft gh-badge nowrap" title="Scheduled" data-tooltip="{{capitalize this.scheduledText}} to {{@post.emailRecipientFilter}} members">
|
|
Scheduled
|
|
</span>
|
|
{{/if}}
|
|
|
|
{{#if @post.isDraft}}
|
|
<span class="gh-content-status-draft gh-badge gh-badge-pink nowrap">
|
|
Draft
|
|
</span>
|
|
{{/if}}
|
|
|
|
{{#if @post.isPublished}}
|
|
<span class="gh-content-status-published nowrap">
|
|
Published
|
|
</span>
|
|
{{/if}}
|
|
|
|
{{#if @post.isSent}}
|
|
<span class="gh-content-status-published nowrap">
|
|
Sent
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
</LinkTo>
|
|
</li> |