2022-08-25 18:25:59 +03:00
|
|
|
<section class="gh-canvas">
|
2021-03-09 14:38:43 +03:00
|
|
|
<GhCanvasHeader class="gh-canvas-header break tablet post-header">
|
2022-02-01 20:59:20 +03:00
|
|
|
<GhCustomViewTitle @title={{if this.session.user.isContributor (concat this.config.blogTitle " posts") "Posts"}} @query={{reset-query-params "posts"}} />
|
2021-03-09 14:38:43 +03:00
|
|
|
<section class="view-actions">
|
2022-09-08 11:42:07 +03:00
|
|
|
<PostsList::ContentFilter
|
2021-03-09 14:38:43 +03:00
|
|
|
@currentUser={{this.session.user}}
|
|
|
|
@selectedType={{this.selectedType}}
|
|
|
|
@availableTypes={{this.availableTypes}}
|
2022-02-02 20:09:02 +03:00
|
|
|
@onTypeChange={{action (mut this.k)}}
|
2021-03-09 14:38:43 +03:00
|
|
|
@selectedVisibility={{this.selectedVisibility}}
|
|
|
|
@availableVisibilities={{this.availableVisibilities}}
|
2022-02-02 20:09:02 +03:00
|
|
|
@onVisibilityChange={{action (mut this.k)}}
|
2021-03-09 14:38:43 +03:00
|
|
|
@selectedAuthor={{this.selectedAuthor}}
|
|
|
|
@availableAuthors={{this.availableAuthors}}
|
2022-02-02 20:09:02 +03:00
|
|
|
@onAuthorChange={{action (mut this.k)}}
|
2021-03-09 14:38:43 +03:00
|
|
|
@selectedTag={{this.selectedTag}}
|
|
|
|
@availableTags={{this.availableTags}}
|
2022-02-02 20:09:02 +03:00
|
|
|
@onTagChange={{action (mut this.k)}}
|
2021-03-09 14:38:43 +03:00
|
|
|
@selectedOrder={{this.selectedOrder}}
|
|
|
|
@availableOrders={{this.availableOrders}}
|
2022-02-02 20:09:02 +03:00
|
|
|
@onOrderChange={{action (mut this.k)}}
|
2021-03-09 14:38:43 +03:00
|
|
|
/>
|
2019-06-18 13:47:21 +03:00
|
|
|
|
2021-03-09 14:38:43 +03:00
|
|
|
<LinkTo @route="editor.new" @model="post" class="gh-btn gh-btn-primary view-actions-top-row" data-test-new-post-button={{true}}><span>New post</span></LinkTo>
|
|
|
|
</section>
|
|
|
|
</GhCanvasHeader>
|
2017-02-23 21:47:52 +03:00
|
|
|
|
2017-06-19 13:09:53 +03:00
|
|
|
<div class="gh-content">
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhLoadingList />
|
2017-06-19 13:09:53 +03:00
|
|
|
</div>
|
2017-02-01 22:49:58 +03:00
|
|
|
</section>
|