Ghost/ghost/admin/app/components/dashboard/v5/recent-posts.hbs
James Morris 3b9525dd63 First round of getting better styles into the new dashboard
refs: https://github.com/TryGhost/Team/issues/1462

- remove dummy percentages where not necessary
- trying out a narrower width for the dashboard
- added in a basic layout for the various charts
- added more specific styles to each of the graphs
- tried out a different way of displaying metrics
- different way to show headers for each module
- made the grid and flex layouts a little more flexible
- there are some bits to still clean up with code
2022-03-29 16:53:50 +01:00

28 lines
911 B
Handlebars

<ol class="gh-list" {{did-insert this.loadPosts}}>
<li class="gh-list-row header">
<h4 class="gh-dashboard5-metric is-split">Recent posts</h4>
{{!--
<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>