mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
142f322338
requires fdeb7daf40
- swapped to using settings model for storing custom views instead of user accessibility field
- added conditional that checks current user is an admin/owner when displaying the manage custom views button in the content filter (only admins/owners can edit settings model)
- passed `session.user` into the `<GhContentFilter>` component as an argument so that the conditional getter doesn't need to handle async user access
- fixed no-shadow linting error in settings service
29 lines
1.2 KiB
Handlebars
29 lines
1.2 KiB
Handlebars
<section class="gh-canvas" {{did-insert (action "setMainClass" "gh-main-primarybg" target=this.ui)}}>
|
|
<header class="gh-canvas-header post-header">
|
|
<GhCustomViewTitle @title="Posts" @query={{reset-query-params "posts"}} />
|
|
<section class="view-actions">
|
|
<GhContentfilter
|
|
@currentUser={{this.session.user}}
|
|
@selectedType={{this.selectedType}}
|
|
@availableTypes={{this.availableTypes}}
|
|
@onTypeChange={{action (mut k)}}
|
|
@selectedAuthor={{this.selectedAuthor}}
|
|
@availableAuthors={{this.availableAuthors}}
|
|
@onAuthorChange={{action (mut k)}}
|
|
@selectedTag={{this.selectedTag}}
|
|
@availableTags={{this.availableTags}}
|
|
@onTagChange={{action (mut k)}}
|
|
@selectedOrder={{this.selectedOrder}}
|
|
@availableOrders={{this.availableOrders}}
|
|
@onOrderChange={{action (mut k)}}
|
|
/>
|
|
|
|
<LinkTo @route="editor.new" @model="post" class="gh-btn gh-btn-green" data-test-new-post-button={{true}}><span>New post</span></LinkTo>
|
|
</section>
|
|
</header>
|
|
|
|
<div class="gh-content">
|
|
<GhLoadingList />
|
|
</div>
|
|
</section>
|