mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
1306921cac
No issue - Changed the Member details page to be more scalable and flexible, depending on whether creators are using subscriptions, emails, and stats. * Hidden email stats on member detail page when subscriptions are off * Hid subscription box on member details page when Stripe is not connected * Updated copy and layout of member details page * Updated old activity feed styles on member page * Fixed padding issue for empty activity feed * Fixed current and new activity feed * Added Last seen to member details page behind feature flag * Updated lint todo file * Fixed spacing issue in member details
48 lines
2.2 KiB
Handlebars
48 lines
2.2 KiB
Handlebars
<section class="gh-member-details-activity" ...attributes>
|
||
<div class="gh-main-section-block">
|
||
<div class="gh-main-section-content">
|
||
<div class="flex items-center">
|
||
{{#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 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>
|
||
{{/if}}
|
||
{{/unless}}
|
||
</h3>
|
||
<p>
|
||
{{#if (and @member.name @member.email)}}
|
||
<a href="mailto:{{@member.email}}">{{@member.email}}</a>
|
||
{{/if}}
|
||
</p>
|
||
{{#unless @member.isNew}}
|
||
<p class="{{if @member.name "nudge-bottom--2"}}">
|
||
{{#if @member.geolocation}}
|
||
{{#if (and (eq @member.geolocation.country_code "US") @member.geolocation.region)}}
|
||
{{@member.geolocation.region}}, US
|
||
{{else}}
|
||
{{or @member.geolocation.country "Unknown location"}}
|
||
{{/if}}
|
||
{{else}}
|
||
Unknown location
|
||
{{/if}}
|
||
– Created on {{moment-format @member.createdAtUTC "D MMM YYYY"}}
|
||
</p>
|
||
{{/unless}}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section> |