2022-03-01 17:57:57 +03:00
|
|
|
|
<section class="gh-member-details" ...attributes>
|
|
|
|
|
<div class="flex flex-column mt4">
|
|
|
|
|
<div class="gh-member-details-identity">
|
|
|
|
|
{{#if (or @member.name @member.email)}}
|
|
|
|
|
<GhMemberAvatar
|
|
|
|
|
@member={{@member}}
|
|
|
|
|
@sizeClass={{if @member.name 'f-subheadline fw4 lh-zero tracked-1' 'f-subheadline fw4 lh-zero tracked-1'}}
|
|
|
|
|
@containerClass="w20 h20 mr4 gh-member-detail-avatar"
|
|
|
|
|
/>
|
|
|
|
|
{{else}}
|
|
|
|
|
<div class="flex items-center justify-center br-100 mr4 gh-new-member-avatar">
|
|
|
|
|
<span class="gh-member-avatar-label f-subheadline fw5 lh-zero tracked-1">N</span>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
<div>
|
|
|
|
|
<h3>
|
|
|
|
|
{{or @member.name @member.email}}
|
|
|
|
|
{{#unless (or @member.name @member.email)}}
|
|
|
|
|
{{#if @member.isNew}}
|
|
|
|
|
<span class="midgrey">New member</span>
|
2022-01-25 19:34:18 +03:00
|
|
|
|
{{/if}}
|
2022-03-01 17:57:57 +03:00
|
|
|
|
{{/unless}}
|
|
|
|
|
</h3>
|
|
|
|
|
<p>
|
|
|
|
|
{{#if (and @member.name @member.email)}}
|
|
|
|
|
<a href="mailto:{{@member.email}}">{{@member.email}}</a>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{#unless @member.isNew}}
|
|
|
|
|
<div class="gh-member-details-meta">
|
|
|
|
|
<p>
|
|
|
|
|
{{svg-jar "pin"}}
|
|
|
|
|
{{#if @member.geolocation}}
|
|
|
|
|
{{#if (and (eq @member.geolocation.country_code "US") @member.geolocation.region)}}
|
|
|
|
|
{{@member.geolocation.region}}, US
|
2022-01-25 19:34:18 +03:00
|
|
|
|
{{else}}
|
2022-03-01 17:57:57 +03:00
|
|
|
|
{{or @member.geolocation.country "Unknown location"}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{else}}
|
|
|
|
|
Unknown location
|
|
|
|
|
{{/if}}
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
{{svg-jar "member-add"}}
|
2022-03-08 23:21:49 +03:00
|
|
|
|
Created on {{moment-format (moment-site-tz @member.createdAtUTC) "D MMM YYYY"}}
|
|
|
|
|
</p>
|
2022-09-22 19:16:42 +03:00
|
|
|
|
{{#if (feature 'sourceAttribution')}}
|
|
|
|
|
{{else}}
|
|
|
|
|
{{#if (and @member.attribution @member.attribution.url @member.attribution.title) }}
|
|
|
|
|
<p>
|
|
|
|
|
{{svg-jar "satellite"}}
|
|
|
|
|
Signed up on <a href="{{@member.attribution.url}}" target="_blank" rel="noopener noreferrer">{{ @member.attribution.title }}</a>
|
|
|
|
|
</p>
|
|
|
|
|
{{/if}}
|
2022-08-19 23:39:18 +03:00
|
|
|
|
{{/if}}
|
2022-03-08 23:21:49 +03:00
|
|
|
|
<p class="gh-member-last-seen">
|
|
|
|
|
{{svg-jar "eye"}}
|
|
|
|
|
{{#if (not (is-empty @member.lastSeenAtUTC))}}
|
|
|
|
|
Last seen on {{moment-format (moment-site-tz @member.lastSeenAtUTC) "D MMM YYYY"}}
|
|
|
|
|
{{else}}
|
|
|
|
|
<span>Not seen yet</span>
|
|
|
|
|
{{/if}}
|
2022-03-01 17:57:57 +03:00
|
|
|
|
</p>
|
2022-01-25 19:34:18 +03:00
|
|
|
|
</div>
|
2022-10-03 12:28:00 +03:00
|
|
|
|
{{#if (and (feature 'sourceAttribution') this.showAttribution)}}
|
2022-09-22 19:16:42 +03:00
|
|
|
|
<div class="gh-member-details-attribution">
|
2022-09-26 16:44:53 +03:00
|
|
|
|
<h4 class="gh-main-section-header small bn">Attribution</h4>
|
2022-09-27 19:29:29 +03:00
|
|
|
|
{{#if this.referrerSource}}
|
|
|
|
|
<p>
|
|
|
|
|
{{svg-jar "earth"}}
|
2022-10-03 15:25:32 +03:00
|
|
|
|
Signup source – <span title="{{this.referrerSource}}">{{this.referrerSource}}</span>
|
2022-09-27 19:29:29 +03:00
|
|
|
|
</p>
|
2022-09-26 18:26:01 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
{{#if (and @member.attribution.url @member.attribution.title)}}
|
|
|
|
|
<p>
|
|
|
|
|
{{svg-jar "posts"}}
|
2022-10-03 15:25:32 +03:00
|
|
|
|
Signup page – <a href="{{@member.attribution.url}}" target="_blank" rel="noopener noreferrer" title="{{ @member.attribution.title }}">{{ @member.attribution.title }}</a>
|
2022-09-22 19:16:42 +03:00
|
|
|
|
</p>
|
2022-10-03 15:20:03 +03:00
|
|
|
|
{{!-- <a href="#" class="gh-member-details-attribution-docs">Learn more →</a> --}}
|
2022-09-26 16:52:39 +03:00
|
|
|
|
{{/if}}
|
2022-09-22 19:16:42 +03:00
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
2022-03-01 17:57:57 +03:00
|
|
|
|
{{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled"))}}
|
|
|
|
|
<div class="gh-member-details-stats-container">
|
|
|
|
|
<h4 class="gh-main-section-header small bn">Engagement</h4>
|
|
|
|
|
{{#if (eq @member.emailCount 0)}}
|
|
|
|
|
<div class="gh-members-no-stats">
|
|
|
|
|
<p>
|
|
|
|
|
{{#if @member.name}}
|
2022-03-08 23:21:49 +03:00
|
|
|
|
We'll show {{first-name @member.name}}'s email stats here once they receive their first newsletter.
|
2022-03-01 17:57:57 +03:00
|
|
|
|
{{else}}
|
2022-03-08 23:21:49 +03:00
|
|
|
|
We'll show this member's email stats here once they receive their first newsletter.
|
2022-03-01 17:57:57 +03:00
|
|
|
|
{{/if}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{{else}}
|
|
|
|
|
<div class="gh-member-details-stats">
|
|
|
|
|
<div class="gh-member-details-stat">
|
|
|
|
|
<p>Emails received</p>
|
|
|
|
|
<div class="gh-data-summary gh-cp-data-summary">{{@member.emailCount}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gh-member-details-stat">
|
|
|
|
|
<p>Emails opened</p>
|
|
|
|
|
<div class="gh-data-summary gh-cp-data-summary">{{@member.emailOpenedCount}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gh-member-details-stat open-rate">
|
|
|
|
|
<p>Average open rate</p>
|
|
|
|
|
<div class="gh-data-summary gh-cp-data-summary {{if (is-empty @member.emailOpenRate) "gh-data-unavailable-label"}}">
|
|
|
|
|
{{#if (is-empty @member.emailOpenRate)}}
|
|
|
|
|
This metric is calculated once a member has received 5 newsletters.
|
|
|
|
|
{{else}}
|
|
|
|
|
{{@member.emailOpenRate}}<span>%</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/unless}}
|
2022-01-25 19:34:18 +03:00
|
|
|
|
</div>
|
2022-08-19 23:39:18 +03:00
|
|
|
|
</section>
|