2021-04-08 14:06:27 +03:00
|
|
|
<li class="gh-list-row gh-members-list-item {{if @member.is_loading "loading"}}" data-test-member={{@member.id}} ...attributes>
|
2020-05-21 12:00:14 +03:00
|
|
|
{{#if @member.is_loading}}
|
2020-05-28 14:55:11 +03:00
|
|
|
<div class="gh-list-data gh-members-list-basic gh-list-loadingcell">
|
2020-05-21 12:00:14 +03:00
|
|
|
<div class="gh-list-loading-title"></div>
|
|
|
|
<div class="gh-list-loading-detail"></div>
|
2019-10-02 14:35:50 +03:00
|
|
|
</div>
|
2020-12-08 22:23:57 +03:00
|
|
|
<div class="gh-list-data gh-members-list-open-rate gh-list-cellwidth-10"></div>
|
|
|
|
<div class="gh-list-data gh-members-list-geolocation gh-list-cellwidth-10"></div>
|
|
|
|
<div class="gh-list-data gh-members-list-subscribed-at gh-list-cellwidth-10"></div>
|
2020-05-28 14:55:11 +03:00
|
|
|
<div class="gh-list-data gh-members-list-chevron gh-list-cellwidth-chevron"></div>
|
2020-05-21 12:00:14 +03:00
|
|
|
{{else}}
|
2020-07-23 16:56:49 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-basic">
|
2020-05-21 12:00:14 +03:00
|
|
|
<div class="flex items-center">
|
2020-06-02 13:30:11 +03:00
|
|
|
<GhMemberAvatar @member={{@member}} @containerClass="w9 h9 mr3 flex-shrink-0" />
|
2021-01-08 16:01:48 +03:00
|
|
|
<div class="w-80">
|
2020-05-21 12:00:14 +03:00
|
|
|
<h3 class="ma0 pa0 gh-members-list-name {{if (not @member.name) "gh-members-name-noname"}}">{{or @member.name @member.email}}</h3>
|
|
|
|
{{#if @member.name}}
|
|
|
|
<p class="ma0 pa0 middarkgrey f8 gh-members-list-email">{{@member.email}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</LinkTo>
|
2019-10-02 06:59:47 +03:00
|
|
|
|
2020-12-08 22:23:57 +03:00
|
|
|
{{#if (feature "emailAnalytics")}}
|
2021-01-08 16:01:48 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-open-rate middarkgrey f8 {{if (not @member.name) "gh-members-list-open-rate-noname"}}">
|
2020-12-08 22:23:57 +03:00
|
|
|
{{#if (not (is-empty @member.emailOpenRate))}}
|
2020-12-09 21:10:12 +03:00
|
|
|
<span class="gh-members-list-open-rate-mobile">{{@member.emailOpenRate}}%</span>
|
2020-12-08 22:23:57 +03:00
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-geolocation middarkgrey f8 {{if (not @member.name) "gh-members-geolocation-noname"}}">
|
2020-06-18 13:05:03 +03:00
|
|
|
{{#if (and @member.geolocation @member.geolocation.country)}}
|
2020-10-22 11:15:03 +03:00
|
|
|
{{#if (and (eq @member.geolocation.country_code "US") @member.geolocation.region)}}
|
2020-05-21 12:00:14 +03:00
|
|
|
{{@member.geolocation.region}}, US
|
|
|
|
{{else}}
|
2020-12-10 14:38:38 +03:00
|
|
|
{{#if @member.geolocation.country}}
|
|
|
|
{{@member.geolocation.country}}
|
|
|
|
{{else}}
|
|
|
|
<span class="midlightgrey">Unknown</span>
|
|
|
|
{{/if}}
|
2020-05-21 12:00:14 +03:00
|
|
|
{{/if}}
|
2020-02-27 15:56:26 +03:00
|
|
|
{{else}}
|
2020-05-21 12:00:14 +03:00
|
|
|
<span class="midlightgrey">Unknown</span>
|
2020-02-27 15:56:26 +03:00
|
|
|
{{/if}}
|
2020-05-21 12:00:14 +03:00
|
|
|
</LinkTo>
|
2020-02-27 15:56:26 +03:00
|
|
|
|
2020-12-08 22:23:57 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-subscribed-at middarkgrey f8 {{if (not @member.name) "gh-members-subscribed-noname"}}">
|
2020-05-21 12:00:14 +03:00
|
|
|
{{#if @member.createdAtUTC}}
|
2021-03-04 15:08:38 +03:00
|
|
|
<div>{{moment-format @member.createdAtUTC "D MMM YYYY"}}</div>
|
|
|
|
<div class="midlightgrey gh-members-list-subscribed-moment">{{moment-from-now @member.createdAtUTC}}</div>
|
2020-05-21 12:00:14 +03:00
|
|
|
{{/if}}
|
|
|
|
</LinkTo>
|
2019-10-02 06:59:47 +03:00
|
|
|
|
2020-07-23 16:56:49 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-list-cellwidth-chevron gh-members-list-chevron">
|
|
|
|
<div class="flex items-center justify-end w-100 h-100">
|
|
|
|
<span class="nr2">{{svg-jar "arrow-right" class="w6 h6 fill-midgrey pa1"}}</span>
|
|
|
|
</div>
|
2020-05-21 12:00:14 +03:00
|
|
|
</LinkTo>
|
|
|
|
{{/if}}
|
2020-02-27 15:17:48 +03:00
|
|
|
</li>
|