0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Updated post list with email clicks

Refs https://github.com/TryGhost/Team/issues/1895
This commit is contained in:
Sanne de Vries 2022-09-14 12:21:22 +01:00
parent b5904d9956
commit 8b24022e5f
2 changed files with 33 additions and 24 deletions

View file

@ -34,7 +34,7 @@
<span class="published">
Published
{{#if @post.hasEmail}}
{{#if isHovered}}
{{#if this.isHovered}}
and sent to 2,467 free subscribers
{{else}}
and sent
@ -84,7 +84,7 @@
<span class="published">
Published
{{#if @post.hasEmail}}
{{#if isHovered}}
{{#if this.isHovered}}
and sent to 2,467 free subscribers
{{else}}
and sent
@ -95,7 +95,7 @@
{{#if @post.isSent}}
<span class="sent">
{{#if isHovered}}
{{#if this.isHovered}}
Sent to 2,467 free subscribers
{{else}}
Sent
@ -112,21 +112,17 @@
{{!-- Opens column --}}
<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">
{{#if (and this.feature.memberAttribution (not this.feature.emailClicks))}}
<span class="gh-list-rate-bar">
<span class="gh-list-rate-number" data-tooltip="Opens: {{format-number @post.email.openedCount}}">{{@post.email.openRate}}%&nbsp;</span>
<span class="gh-list-rate-amount"><span style={{html-safe (concat "width: " @post.email.openRate "%;")}}/></span>
</span>
{{else}}
<span class="darkgrey fw5 gh-content-email-stats">
{{#if this.isHovered}}
1,283
{{else}}
52%
{{/if}}
</span>
{{/if}}
<div class="flex flex-column">
<span class="gh-content-email-stats">
{{#if this.isHovered}}
1,283
{{else}}
52%
{{/if}}
</span>
<span class="gh-content-entry-meta">
opens
</span>
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{@post.email.openRate}}% opens</span>
</div>
{{/if}}
@ -135,11 +131,18 @@
{{!-- Clicks column --}}
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-clicks">
{{#if (and @post.email.trackOpens (eq @post.email.status "submitted"))}}
{{#if this.isHovered}}
444
{{else}}
18%
{{/if}}
<div class="flex flex-column">
<span class="gh-content-email-stats">
{{#if this.isHovered}}
444
{{else}}
18%
{{/if}}
</span>
<span class="gh-content-entry-meta">
clicks
</span>
</div>
{{/if}}
</LinkTo>
{{/if}}

View file

@ -861,7 +861,13 @@ a.gh-post-list-signups.active:hover > span, a.gh-post-list-conversions.active:ho
.gh-posts-list-item-labs .gh-post-list-clicks,
.gh-posts-list-item-labs .gh-post-list-opens,
.gh-posts-list-item-labs .gh-post-list-cta {
width: 120px;
width: 104px;
}
.gh-posts-list-item-labs .gh-content-email-stats {
margin: 0 0 3px;
font-size: 1.5rem;
font-weight: 600;
}
.gh-posts-list-item-labs .gh-btn-outline {