2022-04-28 16:28:56 +03:00
|
|
|
<h4 class="gh-main-section-header small bn">Activity</h4>
|
2022-03-01 12:54:00 +03:00
|
|
|
{{#if @member.isNew}}
|
2022-03-30 14:43:52 +03:00
|
|
|
<div class="gh-main-section-content grey">
|
|
|
|
<div class="gh-member-feed gh-member-feed-no-data">
|
2022-03-01 17:57:57 +03:00
|
|
|
<Member::ActivityFeedEmpty />
|
|
|
|
</div>
|
2022-03-01 12:54:00 +03:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{#let (members-event-fetcher filter=(members-event-filter member=@member.id) pageSize=5) as |eventsFetcher|}}
|
2022-03-01 17:57:57 +03:00
|
|
|
<div class="gh-main-section-content grey {{if eventsFetcher.data "" "mt8"}}">
|
2022-03-30 14:43:52 +03:00
|
|
|
<div class="gh-member-feed {{if eventsFetcher.data "" "gh-member-feed-no-data"}}" ...attributes>
|
2022-03-01 12:54:00 +03:00
|
|
|
<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|}}
|
2022-05-04 11:21:42 +03:00
|
|
|
{{#let (parse-member-event rawEvent eventsFetcher.hasMultipleNewsletters) as |event|}}
|
2022-03-30 14:43:52 +03:00
|
|
|
<div class="gh-member-feed-row">
|
2022-03-01 12:54:00 +03:00
|
|
|
<div class="gh-member-feed-container">
|
|
|
|
<div class="gh-member-feed-icon">
|
|
|
|
{{svg-jar event.icon class=event.iconClass}}
|
2022-01-26 17:37:34 +03:00
|
|
|
</div>
|
2022-03-01 12:54:00 +03:00
|
|
|
<div class="gh-member-feed-detail">
|
|
|
|
<div class="gh-member-feed-event">
|
2022-03-01 17:57:57 +03:00
|
|
|
<span class="gh-members-activity-description">
|
2022-05-03 15:21:29 +03:00
|
|
|
{{capitalize-first-letter event.action}}
|
2022-03-01 17:57:57 +03:00
|
|
|
{{event.object}}
|
|
|
|
</span>
|
2022-03-01 12:54:00 +03:00
|
|
|
{{#if event.email}}
|
2022-03-01 17:57:57 +03:00
|
|
|
"<GhEmailPreviewLink @data={{event.email}} />"
|
2022-03-01 12:54:00 +03:00
|
|
|
{{/if}}
|
2022-04-13 12:28:13 +03:00
|
|
|
{{event.info}}
|
2022-03-01 12:54:00 +03:00
|
|
|
</div>
|
|
|
|
<div class="gh-member-feed-time">
|
|
|
|
{{moment-from-now event.timestamp}}
|
|
|
|
</div>
|
2022-01-26 17:37:34 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-01 12:54:00 +03:00
|
|
|
{{/let}}
|
|
|
|
{{/each}}
|
2022-01-26 13:55:05 +03:00
|
|
|
|
2022-03-01 12:54:00 +03:00
|
|
|
<div class="gh-member-feed-footer">
|
|
|
|
<LinkTo @route="members-activity" @query={{hash excludedEvents=null member=@member.id}}>See all activity →</LinkTo>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<Member::ActivityFeedEmpty />
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-01-26 13:55:05 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-01 12:54:00 +03:00
|
|
|
{{/let}}
|
2022-05-03 15:21:29 +03:00
|
|
|
{{/if}}
|