mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
4b3fc52cf0
refs https://github.com/TryGhost/Team/issues/1277 - first step of further refactoring to make member activity display more generic - separates component data loading from overall controller logic and allows it to be tested in integration tests as well as acceptance tests
25 lines
994 B
Handlebars
25 lines
994 B
Handlebars
{{#if this.shouldDisplay}}
|
|
<div class="gh-dashboard-box grey activity-feed" data-test-dashboard-member-activity>
|
|
<h4 class="gh-dashboard-header">Activity feed</h4>
|
|
<div class="content">
|
|
{{#if this.eventsLoading}}
|
|
Loading...
|
|
{{else}}
|
|
{{#if this.eventsError}}
|
|
<p class="error">
|
|
There was an error loading events
|
|
<code>{{this.eventsError.message}}</code>
|
|
</p>
|
|
{{else}}
|
|
<GhEventTimeline @events={{this.eventsData}}/>
|
|
|
|
{{#if (feature "membersActivityFeed")}}
|
|
<div class="gh-dashboard-top-members-footer">
|
|
<LinkTo @route="members-activity">See all activity {{svg-jar "arrow-right"}}</LinkTo>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/if}} |