2021-08-10 15:11:22 +03:00
|
|
|
{{#if (eq @filterColumn 'label')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data wrap middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2022-02-02 20:09:02 +03:00
|
|
|
<span class="gh-members-list-labels">{{this.labels}}</span>
|
2021-08-10 15:11:22 +03:00
|
|
|
</LinkTo>
|
|
|
|
|
2022-02-28 13:38:44 +03:00
|
|
|
{{else if (eq @filterColumn 'product')}}
|
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data wrap middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
|
|
|
<span class="gh-members-list-labels">{{this.products}}</span>
|
|
|
|
</LinkTo>
|
|
|
|
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else if (eq @filterColumn 'status')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{#if (not (is-empty @member.status))}}
|
2022-01-18 14:55:52 +03:00
|
|
|
<span>{{capitalize @member.status}}</span>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
|
2022-02-22 20:13:32 +03:00
|
|
|
{{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))}}
|
2022-03-03 22:39:37 +03:00
|
|
|
{{moment-format (moment-site-tz @member.lastSeenAtUTC) "D MMM YYYY"}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.lastSeenAtUTC}}</div>
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else if (eq @filterColumn 'email_count')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{#if (not (is-empty @member.emailCount))}}
|
2022-01-18 14:55:52 +03:00
|
|
|
<span>{{@member.emailCount}}</span>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else if (eq @filterColumn 'email_opened_count')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{#if (not (is-empty @member.emailOpenedCount))}}
|
2022-01-18 14:55:52 +03:00
|
|
|
<span>{{@member.emailOpenedCount}}</span>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else if (eq @filterColumn 'subscribed')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{#if (not (is-empty @member.subscribed))}}
|
2022-01-18 14:55:52 +03:00
|
|
|
<span>{{if @member.subscribed "Yes" "No"}}</span>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2022-02-22 20:13:32 +03:00
|
|
|
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else if (eq @filterColumn 'subscriptions.status')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2021-08-16 12:13:23 +03:00
|
|
|
{{#if (not (is-empty this.subscriptionStatus))}}
|
2022-01-18 14:55:52 +03:00
|
|
|
<span>{{capitalize this.subscriptionStatus}}</span>
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2022-02-22 20:13:32 +03:00
|
|
|
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else if (eq @filterColumn 'subscriptions.plan_interval')}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2021-08-16 12:13:23 +03:00
|
|
|
{{#if (not (is-empty this.billingPeriod))}}
|
2022-01-18 14:55:52 +03:00
|
|
|
<span>{{capitalize this.billingPeriod}}</span>
|
2021-08-12 11:03:32 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2022-03-03 22:38:28 +03:00
|
|
|
|
|
|
|
{{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 @member.subscriptions.firstObject.start_date))}}
|
|
|
|
{{moment-format (moment-site-tz @member.subscriptions.firstObject.start_date) "D MMM YYYY"}}
|
|
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.subscriptions.firstObject.start_date}}</div>
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2022-03-04 01:43:50 +03:00
|
|
|
|
|
|
|
{{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 @member.subscriptions.firstObject.current_period_end))}}
|
|
|
|
{{moment-format (moment-site-tz @member.subscriptions.firstObject.current_period_end) "D MMM YYYY"}}
|
|
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.subscriptions.firstObject.current_period_end}}</div>
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{/if}}
|