mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
affe6743e5
refs: https://github.com/TryGhost/Team/issues/1145 - this should allow us to remove the /products endpoint in v5 It avoids: - `kg-product-card`, that really is meant to say product - `product-cadence` on offers Co-authored-by: Rishabh <zrishabhgarg@gmail.com>
95 lines
4.5 KiB
Handlebars
95 lines
4.5 KiB
Handlebars
{{#if (eq @filterColumn 'label')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data wrap middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
<span class="gh-members-list-labels">{{this.labels}}</span>
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'tier')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data wrap middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
<span class="gh-members-list-labels">{{this.tiers}}</span>
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'status')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty @member.status))}}
|
|
<span>{{capitalize @member.status}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'last_seen_at')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty @member.lastSeenAtUTC))}}
|
|
{{moment-format (moment-site-tz @member.lastSeenAtUTC) "D MMM YYYY"}}
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.lastSeenAtUTC}}</div>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'email_count')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty @member.emailCount))}}
|
|
<span>{{@member.emailCount}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'email_opened_count')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty @member.emailOpenedCount))}}
|
|
<span>{{@member.emailOpenedCount}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'subscribed')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty @member.subscribed))}}
|
|
<span>{{if @member.subscribed "Yes" "No"}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'subscriptions.status')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty this.mostRecentSubscription.status))}}
|
|
<span>{{capitalize this.mostRecentSubscription.status}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'subscriptions.plan_interval')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty this.mostRecentSubscription.price.interval))}}
|
|
<span>{{capitalize this.mostRecentSubscription.price.interval}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'subscriptions.start_date')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty this.mostRecentSubscription.start_date))}}
|
|
{{moment-format (moment-site-tz this.mostRecentSubscription.start_date) "D MMM YYYY"}}
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now this.mostRecentSubscription.start_date}}</div>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'subscriptions.current_period_end')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
{{#if (not (is-empty this.mostRecentSubscription.current_period_end))}}
|
|
{{moment-format (moment-site-tz this.mostRecentSubscription.current_period_end) "D MMM YYYY"}}
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now this.mostRecentSubscription.current_period_end}}</div>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
{{/if}}
|