mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
26150ca769
- Adding in dummy column for page or post to various event table places - This still requires wiring up with real data refs https://github.com/TryGhost/Team/issues/1815
72 lines
4.1 KiB
Handlebars
72 lines
4.1 KiB
Handlebars
<h4 class="gh-main-section-header small bn">Activity</h4>
|
|
{{#if @member.isNew}}
|
|
<div class="gh-main-section-content grey">
|
|
<div class="gh-member-feed gh-member-feed-no-data">
|
|
<Member::ActivityFeedEmpty />
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
{{#let (members-event-fetcher filter=(members-event-filter member=@member.id) pageSize=5) as |eventsFetcher|}}
|
|
<div class="gh-main-section-content grey {{if eventsFetcher.data "" "mt8"}}">
|
|
<div class="gh-member-feed {{if eventsFetcher.data "" "gh-member-feed-no-data"}}" ...attributes>
|
|
<div class="gh-list-mini-header">
|
|
<div class="gh-list-mini-title">Event</div>
|
|
<div class="gh-list-mini-title">Page / Post</div>
|
|
<div class="gh-list-mini-title">Time</div>
|
|
</div>
|
|
<div class="gh-list-mini-body">
|
|
{{#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-list-mini-item">
|
|
<div class="gh-list-mini-item-sub">
|
|
<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.object}}
|
|
{{event.object}}
|
|
{{/if}}
|
|
{{#if event.info}}
|
|
<span class="highlight">{{event.info}}</span>
|
|
{{/if}}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{!-- TODO: Wire up the new event page/post links in this column --}}
|
|
<div class="gh-list-mini-item-sub">
|
|
{{#if event.url}}
|
|
<a href="{{event.url}}" target="_blank" rel="noopener noreferrer">{{event.object}}</a>
|
|
{{else if event.email}}
|
|
<GhEmailPreviewLink @data={{event.email}} />
|
|
{{else}}
|
|
<span class="gh-list-nodata">—</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="gh-list-mini-item-sub">
|
|
{{moment-from-now event.timestamp}}
|
|
</div>
|
|
</div>
|
|
{{/let}}
|
|
{{/each}}
|
|
|
|
<div class="gh-list-mini-footer">
|
|
<LinkTo @route="members-activity" @query={{hash excludedEvents=null member=@member.id}}>See all activity →</LinkTo>
|
|
</div>
|
|
{{else}}
|
|
<Member::ActivityFeedEmpty />
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/let}}
|
|
{{/if}}
|