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-05-11 20:11:54 +03:00
|
|
|
{{else if (eq @filterColumn 'tier')}}
|
2022-02-28 13:38:44 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data wrap middarkgrey f8" data-test-table-data={{@filterColumn}}>
|
2022-05-11 20:11:54 +03:00
|
|
|
<span class="gh-members-list-labels">{{this.tiers}}</span>
|
2022-02-28 13:38:44 +03:00
|
|
|
</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}}>
|
2022-03-04 19:32:32 +03:00
|
|
|
{{#if (not (is-empty this.mostRecentSubscription.status))}}
|
|
|
|
<span>{{capitalize this.mostRecentSubscription.status}}</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}}>
|
2022-03-04 19:32:32 +03:00
|
|
|
{{#if (not (is-empty this.mostRecentSubscription.price.interval))}}
|
|
|
|
<span>{{capitalize this.mostRecentSubscription.price.interval}}</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}}>
|
2022-03-04 19:32:32 +03:00
|
|
|
{{#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>
|
2022-03-03 22:38:28 +03:00
|
|
|
{{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}}>
|
2022-03-04 19:32:32 +03:00
|
|
|
{{#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>
|
2022-03-04 01:43:50 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2021-08-10 15:11:22 +03:00
|
|
|
{{/if}}
|