mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
ae9f4a4ac8
refs: https://github.com/TryGhost/Team/issues/1373 - nothing much here, just changing where the member detail header renders on activity - added a little padding to empty states to better vertically center
51 lines
2.3 KiB
Handlebars
51 lines
2.3 KiB
Handlebars
<section class="gh-canvas gh-members-activity {{if this.memberRecord "gh-members-activity-single"}}">
|
|
<GhCanvasHeader class="gh-canvas-header break tablet members-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
<LinkTo @route="members-activity" @query={{reset-query-params "members-activity"}} data-test-link="members-activity-back">Activity</LinkTo>
|
|
{{#if this.memberRecord}}
|
|
<span>{{svg-jar "arrow-right"}}</span>
|
|
<span class="truncate">{{or this.memberRecord.name this.memberRecord.email}}</span>
|
|
{{/if}}
|
|
</h2>
|
|
|
|
<div class="view-actions">
|
|
<div class="view-actions-top-row">
|
|
<MembersActivity::EventTypeFilter
|
|
@excludedEvents={{this.excludedEvents}}
|
|
@hiddenEvents={{this.hiddenEvents}}
|
|
@onChange={{this.changeExcludedEvents}} />
|
|
|
|
<MembersActivity::MemberFilter
|
|
@selected={{this.memberRecord}}
|
|
@onChange={{this.changeMember}} />
|
|
</div>
|
|
</div>
|
|
</GhCanvasHeader>
|
|
|
|
<div class="view-container">
|
|
<div class="gh-list-scrolling">
|
|
{{#let (members-event-fetcher filter=(members-event-filter excludedEvents=this.fullExcludedEvents member=this.member) pageSize=50) as |eventsFetcher|}}
|
|
{{#if eventsFetcher.data}}
|
|
{{#if this.memberRecord}}
|
|
<GhMemberDetailsActivity @member={{this.memberRecord}} />
|
|
{{/if}}
|
|
<MembersActivity::Table @hideMemberColumn={{if this.member true}} @events={{eventsFetcher.data}} />
|
|
|
|
{{#if (not (or eventsFetcher.isLoading eventsFetcher.hasReachedEnd))}}
|
|
<GhScrollTrigger @enter={{eventsFetcher.loadNextPage}} @triggerOffset={{250}} />
|
|
{{/if}}
|
|
{{else}}
|
|
{{#unless eventsFetcher.isLoading}}
|
|
<MembersActivity::NoEvents @filter={{this.filter}} />
|
|
{{/unless}}
|
|
{{/if}}
|
|
|
|
{{#if eventsFetcher.isLoading}}
|
|
<div class="relative h-100"><GhLoadingSpinner /></div>
|
|
{{/if}}
|
|
{{/let}}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{{outlet}} |