From c3fb0ef578b82723d22f712ca79a092bd6e06dd1 Mon Sep 17 00:00:00 2001 From: James Morris Date: Tue, 23 Aug 2022 15:53:48 +0100 Subject: [PATCH] More work on the posts table for attribution - Added in the open rate progress bar - Columns in place with feature flag - Moved open rate to tooltip for exact data refs https://github.com/TryGhost/Team/issues/1818 --- .../app/components/gh-posts-list-item.hbs | 66 +++++++++---------- ghost/admin/app/styles/components/lists.css | 38 +++++++++++ ghost/admin/app/styles/layouts/content.css | 27 +++++++- ghost/admin/app/templates/pages.hbs | 8 +-- ghost/admin/app/templates/posts.hbs | 18 ++--- 5 files changed, 108 insertions(+), 49 deletions(-) diff --git a/ghost/admin/app/components/gh-posts-list-item.hbs b/ghost/admin/app/components/gh-posts-list-item.hbs index fddecdebde..cb85e1d560 100644 --- a/ghost/admin/app/components/gh-posts-list-item.hbs +++ b/ghost/admin/app/components/gh-posts-list-item.hbs @@ -47,40 +47,6 @@ {{/if}} - {{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled") (not this.session.user.isContributor))}} - {{#if (and this.feature.emailAnalytics (eq @post.displayName "post"))}} - -
- {{#if (eq @post.email.status "submitted")}} - - {{format-number @post.email.emailCount}} - {{gh-pluralize @post.email.emailCount "send"}} - - {{else}} - {{#if this.feature.memberAttribution}}{{/if}} - {{/if}} -
-
- - - {{#if (and @post.email.trackOpens (eq @post.email.status "submitted"))}} -
- - {{#if this.isHovered}} - {{format-number @post.email.openedCount}} - {{else}} - {{@post.email.openRate}}%  - {{/if}} - - {{@post.email.openRate}}% opens -
- {{else}} - {{#if this.feature.memberAttribution}}{{/if}} - {{/if}} -
- {{/if}} - {{/if}} - {{#if this.feature.memberAttribution}} {{/if}} + {{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled") (not this.session.user.isContributor))}} + {{#if (and this.feature.emailAnalytics (eq @post.displayName "post"))}} + +
+ {{#if (eq @post.email.status "submitted")}} + + {{format-number @post.email.emailCount}} + {{gh-pluralize @post.email.emailCount "send"}} + + {{else}} + + {{/if}} +
+
+ + + {{#if (and @post.email.trackOpens (eq @post.email.status "submitted"))}} +
+ + {{@post.email.openRate}}%  + + + {{@post.email.openRate}}% opens +
+ {{else}} + + {{/if}} +
+ {{/if}} + {{/if}} + + {{#unless @hideStatusColumn }} {{#if (and this.session.user.isContributor @post.isPublished)}}