{{#let (activity-feed-fetcher filter=(members-event-filter post=@post.id includeEvents=this.getEventTypes) pageSize=this.pageSize) as |eventsFetcher|}} {{#if eventsFetcher.isError}}

There was an error loading events

{{#if eventsFetcher.errorMessage}} {{eventsFetcher.errorMessage}} {{/if}}
{{/if}} {{#if (and (not eventsFetcher.data) (not eventsFetcher.isLoading))}}
{{#if (eq this.eventType "sent")}} {{svg-jar "empty-sent"}}

No members have received your email yet

Once someone receives your email, you'll be able to see the member activity here.

{{else if (eq this.eventType "opened")}} {{svg-jar "empty-opened"}}

No members have opened your newsletter

Once someone opens, you'll see them listed here.

{{else if (eq this.eventType "clicked")}} {{svg-jar "empty-clicked"}}

No links have been clicked in your newsletter

Once a member clicks a link, you'll see them listed here.

{{else if (eq this.eventType "feedback")}} {{svg-jar "empty-feedback"}}

No members have given feedback yet

When someone does, you'll see their response here.

{{else if (eq this.eventType "conversion")}} {{svg-jar "empty-conversion"}}

No members have signed up on this post

When someone new signs up, you'll see them here.

{{/if}}
{{else}}
{{#each eventsFetcher.data as |event|}} {{#let (parse-member-event event) as |parsedEvent|}}
{{parsedEvent.subject}}
{{svg-jar parsedEvent.icon }} {{capitalize-first-letter parsedEvent.action}} {{#if parsedEvent.info}}  ({{parsedEvent.info}}) {{/if}}
{{#if (eq this.eventType "conversion")}}
{{#if parsedEvent.source}} {{svg-jar "event-extras-source"}}{{parsedEvent.source.name}} {{else}} {{/if}}
{{/if}}
{{moment-from-now parsedEvent.timestamp}}
{{/let}} {{/each}} {{#if (compute (fn this.areStubsNeeded eventsFetcher))}} {{#let (compute (fn this.getAmountOfStubs eventsFetcher)) as |stubs|}} {{#each stubs}}
{{/each}} {{/let}} {{/if}}
{{#if (compute (fn this.isPaginationNotNeeded eventsFetcher))}} Showing {{eventsFetcher.totalEvents}} in total {{else}} Showing {{eventsFetcher.previousEvents}}-{{eventsFetcher.shownEvents}} of {{eventsFetcher.totalEvents}}
{{/if}}
{{#if (eq @eventType 'feedback')}} {{/if}} {{/if}} {{/let}}