2022-01-26 13:55:05 +03:00
|
|
|
{{#let (members-event-fetcher filter=(concat "data.member_id:" @member.id) pageSize=5) as |eventsFetcher|}}
|
2022-01-27 20:13:59 +03:00
|
|
|
{{#if eventsFetcher.data}}<h4 class="gh-main-section-header small bn">Activity</h4>{{/if}}
|
2022-01-26 13:55:05 +03:00
|
|
|
<div class="gh-main-section-content bordered {{if eventsFetcher.data "" "mt8"}}">
|
|
|
|
<div class="gh-member-feed" ...attributes>
|
|
|
|
<div class="flex-auto flex flex-column items-stretch {{if eventsFetcher.data "justify-between" "h-100 justify-center"}}">
|
|
|
|
<div>
|
|
|
|
{{#if eventsFetcher.isLoading}}
|
|
|
|
<div class="relative h17"><GhLoadingSpinner class="h30" /></div>
|
|
|
|
{{else if eventsFetcher.data}}
|
|
|
|
{{#each eventsFetcher.data as |rawEvent|}}
|
|
|
|
{{#let (parse-member-event rawEvent) as |event|}}
|
|
|
|
<div class="gh-member-feed-row">
|
2022-01-26 17:37:34 +03:00
|
|
|
<div class="gh-member-feed-container">
|
|
|
|
<div class="gh-member-feed-icon">
|
|
|
|
{{svg-jar event.icon class=event.iconClass}}
|
|
|
|
</div>
|
|
|
|
<div class="gh-member-feed-detail">
|
|
|
|
<div class="gh-member-feed-event">
|
|
|
|
{{#if event.email}}
|
|
|
|
<GhEmailPreviewLink @data={{event.email}} class="gh-member-feed-title" />
|
|
|
|
{{else}}
|
|
|
|
<span class="gh-member-feed-title">{{event.action}} {{event.object}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="gh-member-feed-time">
|
|
|
|
{{moment-from-now event.timestamp}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-26 13:55:05 +03:00
|
|
|
</div>
|
|
|
|
{{/let}}
|
|
|
|
{{/each}}
|
|
|
|
|
2022-01-26 17:37:34 +03:00
|
|
|
<div class="gh-member-feed-footer">
|
|
|
|
<LinkTo @route="members-activity" @query={{hash excludedEvents=null member=@member.id}}>See all activity →</LinkTo>
|
|
|
|
</div>
|
2022-01-26 13:55:05 +03:00
|
|
|
{{else}}
|
|
|
|
<div class="gh-members-no-data gh-members-no-list">
|
|
|
|
<div class="lightgrey">{{svg-jar "no-data-list"}}</div>
|
2022-01-27 20:13:59 +03:00
|
|
|
<h4>Activity</h4>
|
2022-01-26 13:55:05 +03:00
|
|
|
<p>
|
|
|
|
All events related to this member will be shown here.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/let}}
|