2020-05-21 12:00:14 +03:00
|
|
|
<li class="gh-list-row gh-members-list-item {{if @member.is_loading "loading"}}" ...attributes>
|
|
|
|
{{#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-05-28 14:55:11 +03:00
|
|
|
<div class="gh-list-data gh-members-list-geolocation gh-list-cellwidth-20"></div>
|
|
|
|
<div class="gh-list-data gh-members-list-subscribed-at gh-list-cellwidth-20"></div>
|
|
|
|
<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" />
|
2020-05-21 12:00:14 +03:00
|
|
|
<div>
|
|
|
|
<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-07-23 16:56:49 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-geolocation gh-list-cellwidth-20 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-05-21 12:00:14 +03:00
|
|
|
{{#if (eq @member.geolocation.country_code "US")}}
|
|
|
|
{{@member.geolocation.region}}, US
|
|
|
|
{{else}}
|
|
|
|
{{@member.geolocation.country}}
|
|
|
|
{{/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-07-23 16:56:49 +03:00
|
|
|
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-subscribed-at gh-list-cellwidth-20 middarkgrey f8 {{if (not @member.name) "gh-members-subscribed-noname"}}">
|
2020-05-21 12:00:14 +03:00
|
|
|
{{#if @member.createdAtUTC}}
|
2020-07-06 18:53:25 +03:00
|
|
|
{{moment-format @member.createdAtUTC "D MMM YYYY"}}
|
2020-06-18 13:05:03 +03:00
|
|
|
<span class="midlightgrey">({{moment-from-now @member.createdAtUTC}})</span>
|
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>
|