2022-01-27 14:40:11 +03:00
|
|
|
<tr data-test-list='members-list-item' data-test-member={{@member.id}}>
|
2021-10-01 13:04:56 +03:00
|
|
|
{{#if @member.is_loading}}
|
|
|
|
<div class="gh-list-data gh-members-list-basic gh-list-loadingcell">
|
|
|
|
<div class="gh-list-loading-title"></div>
|
|
|
|
<div class="gh-list-loading-detail"></div>
|
|
|
|
</div>
|
|
|
|
<div class="gh-list-data"></div>
|
|
|
|
<div class="gh-list-data"></div>
|
|
|
|
<div class="gh-list-data"></div>
|
2022-03-03 19:16:29 +03:00
|
|
|
{{#each @filterColumns}}
|
2021-10-01 13:04:56 +03:00
|
|
|
<div class="gh-list-data"></div>
|
2022-01-27 14:40:11 +03:00
|
|
|
{{/each}}
|
2021-10-01 13:04:56 +03:00
|
|
|
{{else}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data" data-test-table-data="details">
|
2021-10-01 13:04:56 +03:00
|
|
|
<div class="flex items-center">
|
|
|
|
<GhMemberAvatar @member={{@member}} @containerClass="w9 h9 mr3 flex-shrink-0" />
|
|
|
|
<div class="w-80">
|
2022-02-02 19:09:43 +03:00
|
|
|
<h3 class="ma0 pa0 gh-members-list-name {{unless @member.name "gh-members-name-noname"}}">{{or @member.name @member.email}}</h3>
|
2021-10-01 13:04:56 +03:00
|
|
|
{{#if @member.name}}
|
|
|
|
<p class="ma0 pa0 middarkgrey f8 gh-members-list-email">{{@member.email}}</p>
|
2021-07-22 16:47:01 +03:00
|
|
|
{{/if}}
|
2021-10-01 13:04:56 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</LinkTo>
|
2022-02-14 14:57:56 +03:00
|
|
|
{{#if (feature "membersTableStatus")}}
|
2022-05-11 20:11:54 +03:00
|
|
|
{{#if this.hasMultipleTiers}}
|
2022-03-09 10:43:47 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data">
|
|
|
|
{{#if (not (is-empty @member.status))}}
|
|
|
|
<span>{{capitalize @member.status}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
2022-05-11 20:11:54 +03:00
|
|
|
<div class="midgrey">{{this.tiers}}</div>
|
2022-03-09 10:43:47 +03:00
|
|
|
</LinkTo>
|
|
|
|
{{else}}
|
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data" data-test-table-data="status">
|
|
|
|
{{#if (not (is-empty @member.status))}}
|
|
|
|
<span>{{capitalize @member.status}}</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">-</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
2022-02-14 14:57:56 +03:00
|
|
|
{{/if}}
|
2022-01-27 14:40:11 +03:00
|
|
|
{{#if @newsletterEnabled}}
|
|
|
|
{{#if (feature "emailAnalytics")}}
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8 {{unless @member.name "gh-members-list-open-rate-noname"}}" data-test-table-data="open-rate">
|
2022-01-27 14:40:11 +03:00
|
|
|
{{#if (not (is-empty @member.emailOpenRate))}}
|
|
|
|
<span>{{@member.emailOpenRate}}%</span>
|
2020-12-10 14:38:38 +03:00
|
|
|
{{else}}
|
2022-01-27 14:40:11 +03:00
|
|
|
<span class="midlightgrey">N/A</span>
|
2020-12-10 14:38:38 +03:00
|
|
|
{{/if}}
|
2022-01-27 14:40:11 +03:00
|
|
|
</LinkTo>
|
2021-10-01 13:04:56 +03:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2020-02-27 15:56:26 +03:00
|
|
|
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8 {{unless @member.name "gh-members-geolocation-noname"}}" data-test-table-data="location">
|
2021-10-01 13:04:56 +03:00
|
|
|
{{#if (and @member.geolocation @member.geolocation.country)}}
|
|
|
|
{{#if (and (eq @member.geolocation.country_code "US") @member.geolocation.region)}}
|
|
|
|
{{@member.geolocation.region}}, US
|
|
|
|
{{else}}
|
|
|
|
{{#if @member.geolocation.country}}
|
|
|
|
{{@member.geolocation.country}}
|
2021-07-22 16:47:01 +03:00
|
|
|
{{else}}
|
2021-10-01 13:04:56 +03:00
|
|
|
<span class="midlightgrey">Unknown</span>
|
2021-07-22 16:47:01 +03:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2021-10-01 13:04:56 +03:00
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">Unknown</span>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2021-07-22 16:47:01 +03:00
|
|
|
|
2022-02-22 20:13:32 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} class="gh-list-data middarkgrey f8" data-test-table-data="created-at">
|
2021-10-01 13:04:56 +03:00
|
|
|
{{#if @member.createdAtUTC}}
|
2022-03-03 19:16:29 +03:00
|
|
|
<div>{{moment-format (moment-site-tz @member.createdAtUTC) "D MMM YYYY"}}</div>
|
2021-10-01 13:04:56 +03:00
|
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.createdAtUTC}}</div>
|
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2022-03-03 19:16:29 +03:00
|
|
|
|
2022-01-27 14:40:11 +03:00
|
|
|
{{#each @filterColumns as |filterColumn|}}
|
|
|
|
<GhMembersListItemColumn @member={{@member}} @filterColumn={{filterColumn}} />
|
|
|
|
{{/each}}
|
2021-10-01 13:04:56 +03:00
|
|
|
{{/if}}
|
2022-01-27 14:40:11 +03:00
|
|
|
</tr>
|