mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Updated post list with email clicks
Refs https://github.com/TryGhost/Team/issues/1895
This commit is contained in:
parent
b5904d9956
commit
8b24022e5f
2 changed files with 33 additions and 24 deletions
|
@ -34,7 +34,7 @@
|
||||||
<span class="published">
|
<span class="published">
|
||||||
Published
|
Published
|
||||||
{{#if @post.hasEmail}}
|
{{#if @post.hasEmail}}
|
||||||
{{#if isHovered}}
|
{{#if this.isHovered}}
|
||||||
and sent to 2,467 free subscribers
|
and sent to 2,467 free subscribers
|
||||||
{{else}}
|
{{else}}
|
||||||
and sent
|
and sent
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
<span class="published">
|
<span class="published">
|
||||||
Published
|
Published
|
||||||
{{#if @post.hasEmail}}
|
{{#if @post.hasEmail}}
|
||||||
{{#if isHovered}}
|
{{#if this.isHovered}}
|
||||||
and sent to 2,467 free subscribers
|
and sent to 2,467 free subscribers
|
||||||
{{else}}
|
{{else}}
|
||||||
and sent
|
and sent
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
{{#if @post.isSent}}
|
{{#if @post.isSent}}
|
||||||
<span class="sent">
|
<span class="sent">
|
||||||
{{#if isHovered}}
|
{{#if this.isHovered}}
|
||||||
Sent to 2,467 free subscribers
|
Sent to 2,467 free subscribers
|
||||||
{{else}}
|
{{else}}
|
||||||
Sent
|
Sent
|
||||||
|
@ -112,21 +112,17 @@
|
||||||
{{!-- Opens column --}}
|
{{!-- Opens column --}}
|
||||||
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-opens">
|
<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"))}}
|
{{#if (and @post.email.trackOpens (eq @post.email.status "submitted"))}}
|
||||||
<div class="flex">
|
<div class="flex flex-column">
|
||||||
{{#if (and this.feature.memberAttribution (not this.feature.emailClicks))}}
|
<span class="gh-content-email-stats">
|
||||||
<span class="gh-list-rate-bar">
|
|
||||||
<span class="gh-list-rate-number" data-tooltip="Opens: {{format-number @post.email.openedCount}}">{{@post.email.openRate}}% </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}}
|
{{#if this.isHovered}}
|
||||||
1,283
|
1,283
|
||||||
{{else}}
|
{{else}}
|
||||||
52%
|
52%
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
<span class="gh-content-entry-meta">
|
||||||
|
opens
|
||||||
|
</span>
|
||||||
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{@post.email.openRate}}% opens</span>
|
<span class="midgrey-l2 fw4 gh-content-email-stats-mobile">{{@post.email.openRate}}% opens</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -135,11 +131,18 @@
|
||||||
{{!-- Clicks column --}}
|
{{!-- Clicks column --}}
|
||||||
<LinkTo @route="editor.edit" @models={{array @post.displayName @post.id}} class="permalink gh-list-data gh-post-list-clicks">
|
<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 (and @post.email.trackOpens (eq @post.email.status "submitted"))}}
|
||||||
|
<div class="flex flex-column">
|
||||||
|
<span class="gh-content-email-stats">
|
||||||
{{#if this.isHovered}}
|
{{#if this.isHovered}}
|
||||||
444
|
444
|
||||||
{{else}}
|
{{else}}
|
||||||
18%
|
18%
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</span>
|
||||||
|
<span class="gh-content-entry-meta">
|
||||||
|
clicks
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -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-clicks,
|
||||||
.gh-posts-list-item-labs .gh-post-list-opens,
|
.gh-posts-list-item-labs .gh-post-list-opens,
|
||||||
.gh-posts-list-item-labs .gh-post-list-cta {
|
.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 {
|
.gh-posts-list-item-labs .gh-btn-outline {
|
||||||
|
|
Loading…
Add table
Reference in a new issue