Ghost/ghost/admin/app/components/dashboard/resources/newsletter.hbs
Simon Backx 8502ebb96a Moving over the new Dashboard to replace the old (#2389)
refs: https://github.com/TryGhost/Team/issues/1631

Co-authored-by: James Morris <moreofmorris@users.noreply.github.com>
2022-05-17 09:34:34 +02:00

25 lines
1.2 KiB
Handlebars

<section class="gh-dashboard-resource gh-dashboard-newsletter" {{did-insert this.load}}>
<article class="gh-dashboard-resource-box">
<div class="gh-dashboard-resource-title">
<h4>Latest from the newsletter</h4>
</div>
<div class="gh-dashboard-resource-body">
{{#if (not (or this.loading this.error))}}
<div class="gh-dashboard-resource-bigarticle">
{{#each this.newsletters as |entry|}}
<a class="gh-dashboard-resource-smallarticle" href={{set-query-params entry.url utm_source='admin'}} target="_blank" rel="noopener noreferrer">
<div class="gh-dashboard-resource-text">
<h3>{{entry.title}}</h3>
<p>{{entry.excerpt}}</p>
</div>
</a>
{{/each}}
</div>
{{/if}}
</div>
<div class="gh-dashboard-resource-footer">
<a href="https://ghost.org/resources/newsletter/" target="_blank" class="gh-dashboard-subscribe-button" rel="noopener noreferrer">Subscribe&nbsp;<span>to the newsletter&nbsp;</span>&rarr;</a>
</div>
</article>
</section>