mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
6adecb5db1
refs https://github.com/TryGhost/Team/issues/1563 - Check if we have multiple newsletters in the members-events-fetcher - Pass the resulting value to the `parse-member-event` helper - Pass the value to the activity feed table and table-row components
36 lines
1.7 KiB
Handlebars
36 lines
1.7 KiB
Handlebars
{{#let (parse-member-event @event @hasMultipleNewsletters) as |event|}}
|
|
<tr>
|
|
{{#unless @hideMemberColumn}}
|
|
<div class="gh-list-data">
|
|
<LinkTo @route="members-activity" @query={{hash member=event.member.id}}>
|
|
<div class="flex items-center">
|
|
<GhMemberAvatar @member={{event.member}} @containerClass="w9 h9 mr3 flex-shrink-0" />
|
|
<div class="w-80">
|
|
<h3 class="ma0 pa0 gh-members-list-name {{unless event.member.name "gh-members-name-noname"}}">{{or event.member.name event.member.email}}</h3>
|
|
{{#if event.member.name}}
|
|
<p class="ma0 pa0 middarkgrey f8 gh-members-list-email">{{event.member.email}}</p>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</LinkTo>
|
|
</div>
|
|
{{/unless}}
|
|
<div class="gh-list-data">
|
|
<div class="gh-members-activity-container">
|
|
<div class="gh-members-activity-icon">{{svg-jar event.icon}}</div>
|
|
<div class="gh-members-activity-event">
|
|
<span class="gh-members-activity-description">
|
|
{{capitalize-first-letter event.action}}
|
|
{{event.object}}
|
|
</span>
|
|
{{#if event.email}}
|
|
"<GhEmailPreviewLink @data={{event.email}} />"
|
|
{{/if}}
|
|
<span class="highlight">{{event.info}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="gh-list-data">{{moment-format event.timestamp "D MMM YYYY HH:mm"}}</div>
|
|
</tr>
|
|
{{/let}}
|