2022-04-12 18:03:52 +03:00
|
|
|
<section class="gh-dashboard5-section gh-dashboard5-recent-posts">
|
2022-04-12 15:29:10 +03:00
|
|
|
<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>
|
2022-04-20 16:29:54 +03:00
|
|
|
<div class="gh-dashboard5-list-title">Open rate</div>
|
2022-03-24 20:14:51 +03:00
|
|
|
</div>
|
2022-04-12 15:29:10 +03:00
|
|
|
<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>
|
2022-04-20 16:29:54 +03:00
|
|
|
<span>{{format-number post.email.emailCount}}</span>
|
|
|
|
<span class="with-percentage-bar">
|
|
|
|
<span class="prototype-bar"><span style={{html-safe (concat "width: " post.email.openRate "%;")}}/></span>
|
|
|
|
<span>{{post.email.openRate}}%</span>
|
|
|
|
</span>
|
2022-04-12 15:29:10 +03:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-dashboard5-list-empty">
|
|
|
|
<p>No published posts yet.</p>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
2022-04-06 20:11:46 +03:00
|
|
|
</div>
|
2022-04-12 15:29:10 +03:00
|
|
|
<div class="gh-dashboard5-list-footer">
|
|
|
|
<LinkTo @route="posts" @query={{reset-query-params "posts"}}>See all posts →</LinkTo>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</section>
|