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-08-18 18:29:40 +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|}}
|
|
|
|
{{#let (parse-member-event rawEvent eventsFetcher.hasMultipleNewsletters) as |event|}}
|
|
|
|
<div class="gh-member-feed-row">
|
|
|
|
<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">
|
|
|
|
<span class="gh-member-feed-event-inner">
|
|
|
|
<span class="gh-members-activity-description">
|
|
|
|
{{capitalize-first-letter event.action}}
|
|
|
|
{{#if event.url}}
|
|
|
|
"<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>"
|
|
|
|
{{else}}
|
|
|
|
{{event.object}}
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{#if event.email}}
|
|
|
|
"<GhEmailPreviewLink @data={{event.email}} />"
|
2022-08-02 18:02:42 +03:00
|
|
|
{{/if}}
|
2022-08-18 18:29:40 +03:00
|
|
|
{{event.info}}
|
|
|
|
|
2022-08-02 20:11:44 +03:00
|
|
|
</span>
|
2022-08-18 18:29:40 +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-08-18 18:29:40 +03:00
|
|
|
{{/let}}
|
|
|
|
{{/each}}
|
2022-01-26 13:55:05 +03:00
|
|
|
|
2022-08-18 18:29:40 +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}}
|