mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
edf38cdde4
refs https://github.com/TryGhost/Team/issues/943 - fixes label shown for billing period and subscription status on the table for filtered data
58 lines
2.4 KiB
Handlebars
58 lines
2.4 KiB
Handlebars
{{#if (eq @filterColumn 'label')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data wrap middarkgrey f8">
|
|
<span class="gh-members-list-labels">{{labels}}</span>
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'status')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8">
|
|
{{#if (not (is-empty @member.status))}}
|
|
<span class="gh-members-list-open-rate-mobile">{{capitalize @member.status}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
|
|
{{else if (eq @filterColumn 'email_count')}}
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8">
|
|
{{#if (not (is-empty @member.emailCount))}}
|
|
<span class="gh-members-list-open-rate-mobile">{{@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">
|
|
{{#if (not (is-empty @member.emailOpenedCount))}}
|
|
<span class="gh-members-list-open-rate-mobile">{{@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">
|
|
{{#if (not (is-empty @member.subscribed))}}
|
|
<span class="gh-members-list-open-rate-mobile">{{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">
|
|
{{#if (not (is-empty this.subscriptionStatus))}}
|
|
<span class="gh-members-list-open-rate-mobile">{{capitalize this.subscriptionStatus}}</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">
|
|
{{#if (not (is-empty this.billingPeriod))}}
|
|
<span class="gh-members-list-open-rate-mobile">{{capitalize this.billingPeriod}}</span>
|
|
{{else}}
|
|
<span class="midlightgrey">-</span>
|
|
{{/if}}
|
|
</LinkTo>
|
|
{{/if}}
|