2022-03-29 18:53:50 +03:00
|
|
|
|
2022-03-24 20:14:51 +03:00
|
|
|
<ol class="gh-list" {{did-insert this.loadPosts}}>
|
|
|
|
<li class="gh-list-row header">
|
2022-03-29 18:53:50 +03:00
|
|
|
<h4 class="gh-dashboard5-metric is-split">Recent posts</h4>
|
|
|
|
{{!--
|
2022-03-24 20:14:51 +03:00
|
|
|
<div class="gh-list-header gh-posts-title-header">Title</div>
|
|
|
|
<div class="gh-list-header gh-posts-sends-header">Sends</div>
|
|
|
|
<div class="gh-list-header gh-posts-opens-header">Opens</div>
|
2022-03-29 18:53:50 +03:00
|
|
|
--}}
|
2022-03-24 20:14:51 +03:00
|
|
|
</li>
|
|
|
|
{{#each this.posts as |post|}}
|
|
|
|
<GhPostsListItem
|
|
|
|
@post={{post}}
|
|
|
|
@hideAuthor={{true}}
|
|
|
|
@hideStatusColumn={{true}}
|
|
|
|
data-test-post-id={{post.id}} />
|
|
|
|
{{else}}
|
|
|
|
<li class="no-posts-box">
|
|
|
|
<div class="no-posts">
|
|
|
|
<h3>No published posts yet.</h3>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
<LinkTo @route="posts" @query={{reset-query-params "posts"}}>See all posts →</LinkTo>
|
|
|
|
</div>
|