0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added signup & conversion counts to post index page

refs https://github.com/TryGhost/Team/issues/1818

This is all hidden behind the alpha flag, and is missing the links to filtered
members as that has not been implemented yet.
This commit is contained in:
Fabien "egg" O'Carroll 2022-08-18 12:25:12 -04:00 committed by Fabien 'egg' O'Carroll
parent 20726c8fc2
commit dd0097e68f
3 changed files with 17 additions and 0 deletions

View file

@ -77,6 +77,18 @@
{{/if}}
{{/if}}
{{#if this.feature.memberAttribution}}
<a href={{@post.url}} class="permalink gh-list-data gh-post-list-status" target="_blank" rel="noopener noreferrer">
{{@post.count.signups}}
</a>
{{/if}}
{{#if this.feature.memberAttribution}}
<a href={{@post.url}} class="permalink gh-list-data gh-post-list-status" target="_blank" rel="noopener noreferrer">
{{@post.count.conversions}}
</a>
{{/if}}
{{#unless @hideStatusColumn }}
{{#if (and this.session.user.isContributor @post.isPublished)}}
<a href={{@post.url}} class="permalink gh-list-data gh-post-list-status" target="_blank" rel="noopener noreferrer">

View file

@ -75,6 +75,7 @@ export default Model.extend(Comparable, ValidationEngine, {
displayName: 'post',
validationType: 'post',
count: attr(),
createdAtUTC: attr('moment-utc'),
excerpt: attr('string'),
customExcerpt: attr('string'),

View file

@ -35,6 +35,10 @@
<div class="gh-list-header gh-posts-sends-header">Sends</div>
<div class="gh-list-header gh-posts-opens-header">Opens</div>
{{/if}}
{{#if this.feature.memberAttribution}}
<div class="gh-list-header gh-posts-opens-header">Signups</div>
<div class="gh-list-header gh-posts-opens-header">Conversions</div>
{{/if}}
<div class="gh-list-header gh-posts-status-header">Status</div>
</li>
{{/if}}