Ghost/ghost/admin/app/components/dashboard/v5/recent-posts.hbs
Simon Backx 9213e590ad Added recent posts and email open rate data to dashboard 5
refs https://github.com/TryGhost/Team/issues/1448
refs https://github.com/TryGhost/Team/issues/1443

- Toggle to switch between fake and real data
- Email open rate can now use real data (still problem with posts that don't have email data)
- Recent posts data
2022-03-24 18:17:02 +01:00

24 lines
815 B
Handlebars

<ol class="gh-list" {{did-insert this.loadPosts}}>
<li class="gh-list-row header">
<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>
</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>