mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
e4891e3462
refs: https://github.com/TryGhost/Team/issues/1507 - changed the layout over to use css grids instead of the random flex and divs - cleaned up the based dashboard-v5 file so its rendering much cleaner components - refactored and took out a ton of old css that wasn't needed anymore - moved the dashboard-v5 css into it's own css file to keep things cleaner - includes a few stylistic changes along the way
30 lines
1.3 KiB
Handlebars
30 lines
1.3 KiB
Handlebars
<section class="gh-dashboard5-section gh-dashboard5-recent-posts">
|
|
<article class="gh-dashboard5-box">
|
|
<div class="gh-dashboard5-list" {{did-insert this.loadPosts}}>
|
|
<div class="gh-dashboard5-list-header">
|
|
<div class="gh-dashboard5-list-title">Recent posts</div>
|
|
<div class="gh-dashboard5-list-title">Sends</div>
|
|
<div class="gh-dashboard5-list-title">Opens</div>
|
|
</div>
|
|
<div class="gh-dashboard5-list-body">
|
|
{{#each this.posts as |post|}}
|
|
<div class="gh-dashboard5-list-item">
|
|
<LinkTo class="gh-dashboard5-list-post permalink" @route="editor.edit" @models={{array post.displayName post.id}}>
|
|
{{post.title}}
|
|
</LinkTo>
|
|
<span>231</span>
|
|
<span>65%</span>
|
|
</div>
|
|
{{else}}
|
|
<div class="gh-dashboard5-list-empty">
|
|
<p>No published posts yet.</p>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
<div class="gh-dashboard5-list-footer">
|
|
<LinkTo @route="posts" @query={{reset-query-params "posts"}}>See all posts →</LinkTo>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</section>
|