mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-13 14:39:52 +03:00
eb2109499a
refs https://github.com/TryGhost/Team/issues/1277 - added `/members-activity` route with associated controller, template, and components behind labs flag - table component currently renders some dummy rows - added navigation item to main menu - will use the currently set `?filter` query param unless clicked whilst already on the `/members-activity` screen in which case it will reset the query - added link to dashboard members activity panel - added link to member details activity panel - sets the filter param to `?filter=member:{member.id}` in preparation for the feed to be filtered to the member's activity - updated the labs-flag test helper file to export both `enableLabsFlag()` and the new `disableLabsFlag()` so it's easier to test for flag-disabled functionality
41 lines
1.5 KiB
Handlebars
41 lines
1.5 KiB
Handlebars
<section class="view-container">
|
|
{{#if this.activities}}
|
|
<div class="gh-list-scrolling">
|
|
<table class="gh-list">
|
|
<thead>
|
|
<tr>
|
|
<th>Member</th>
|
|
<th>Event</th>
|
|
<th>Time</th>
|
|
</tr>
|
|
</thead>
|
|
<VerticalCollection
|
|
@tagName="tbody"
|
|
@items={{this.activities}}
|
|
@key="id"
|
|
@containerSelector=".gh-list-scrolling"
|
|
@estimateHeight={{69}}
|
|
@staticHeight={{true}}
|
|
@bufferSize={{20}}
|
|
as |activity|
|
|
>
|
|
<MembersActivity::TableItem @activity={{activity}} />
|
|
</VerticalCollection>
|
|
</table>
|
|
</div>
|
|
{{else}}
|
|
<div class="no-posts-box">
|
|
<div class="no-posts">
|
|
{{svg-jar "members-placeholder" class="gh-members-placeholder"}}
|
|
{{#if this.showingAll}}
|
|
<h3>No member activity yet</h3>
|
|
{{else}}
|
|
<h3>No activities match the current filter</h3>
|
|
<LinkTo @route="members-activity" @query={{hash filter=null}} class="gh-btn gh-btn-lg">
|
|
<span>Show all activity</span>
|
|
</LinkTo>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</section> |