mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +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
43 lines
2.2 KiB
Handlebars
43 lines
2.2 KiB
Handlebars
{{#if this.activities}}<h4 class="gh-main-section-header small bn">Activity</h4>{{/if}}
|
|
<div class="gh-main-section-content grey {{if this.activities "" "mt8"}}">
|
|
<div class="gh-member-feed {{if this.activities "" "gh-member-feed-no-data"}}" ...attributes>
|
|
<div class="flex-auto flex flex-column items-stretch {{if this.activities "justify-between" "h-100 justify-center"}}">
|
|
<div>
|
|
{{#if this.activities}}
|
|
{{#each this.firstActivities as |activity|}}
|
|
<GhMemberActivityFeedItem @activity={{activity}} />
|
|
{{/each}}
|
|
|
|
{{#liquid-if this.isShowingAll class="show-overflow"}}
|
|
{{#each this.remainingActivities as |activity|}}
|
|
<GhMemberActivityFeedItem @activity={{activity}} />
|
|
{{/each}}
|
|
{{/liquid-if}}
|
|
|
|
{{#if (feature "membersActivityFeed")}}
|
|
<LinkTo class="gh-btn gh-member-btn-expandfeed" @route="members-activity" @query={{hash excludedEvents=null member=@member.id}}><span>View all activity</span></LinkTo>
|
|
{{else}}
|
|
{{#if (and this.remainingActivities (not this.isShowingAll))}}
|
|
<button
|
|
type="button"
|
|
class="gh-btn gh-member-btn-expandfeed"
|
|
data-test-button="view-all-activity"
|
|
{{on "click" this.showAll}}
|
|
>
|
|
<span>View all activity</span>
|
|
</button>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{else}}
|
|
<div class="gh-members-no-data gh-members-no-list">
|
|
<div class="lightgrey">{{svg-jar "no-data-list"}}</div>
|
|
<h4>Activity</h4>
|
|
<p>
|
|
All events related to this member will be shown here.
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |