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}}
|
2022-11-18 13:33:48 +03:00
|
|
|
{{#let (members-event-fetcher filter=(members-event-filter member=@member.id excludedEvents=this.excludedEventTypes) pageSize=5 memberId=@member.id) 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">
|
2022-08-25 16:19:55 +03:00
|
|
|
<span class="gh-members-activity-description {{if (feature "memberAttribution") 'feature-memberAttribution'}}">
|
|
|
|
<span class="gh-members-activity-event-text">{{capitalize-first-letter event.action}}</span>
|
|
|
|
{{#if event.info}}
|
2022-11-11 18:17:55 +03:00
|
|
|
<span class="highlight">({{event.info}})</span>
|
2022-08-25 16:19:55 +03:00
|
|
|
{{/if}}
|
2022-08-18 18:29:40 +03:00
|
|
|
{{#if event.url}}
|
2022-08-25 16:19:55 +03:00
|
|
|
<span class="gh-members-activity-event-join">{{event.join}}</span>
|
2022-08-22 15:32:36 +03:00
|
|
|
<a class="ghost-members-activity-object-link" href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
2022-11-11 18:17:55 +03:00
|
|
|
{{else if event.email}}
|
|
|
|
<span class="gh-members-activity-event-join">{{event.join}}</span>
|
2022-08-22 15:32:36 +03:00
|
|
|
<GhEmailPreviewLink @data={{event.email}} />
|
|
|
|
{{/if}}
|
2022-08-18 18:29:40 +03:00
|
|
|
</span>
|
2022-09-21 11:25:51 +03:00
|
|
|
{{#if event.description}}
|
2022-09-22 20:00:48 +03:00
|
|
|
<div class="ghost-members-activity-event-description {{if (feature "memberAttribution") 'feature-memberAttribution'}}">
|
2022-09-21 15:58:22 +03:00
|
|
|
<div class="ghost-members-activity-event-url" {{on "mouseenter" this.enterLinkURL}} {{on "mouseleave" this.leaveLinkURL}}>
|
|
|
|
<span>{{event.description}}</span>
|
|
|
|
</div>
|
2022-09-21 11:25:51 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
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">
|
2023-01-11 17:44:23 +03:00
|
|
|
<LinkTo @route="members-activity" @query={{hash excludedEvents=null member=@member.id}}>View all member activity →</LinkTo>
|
2022-08-18 18:29:40 +03:00
|
|
|
</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}}
|