Ghost/ghost/admin/app/components/dashboard/resources/resources.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

24 lines
1.3 KiB
Handlebars

<section class="gh-dashboard-resource gh-dashboard-resources" {{did-insert this.load}}>
<article class="gh-dashboard-resource-box">
{{#if (not (or this.loading this.error))}}
<a href="{{this.resource.url}}" target="_blank" class="gh-dashboard-resource-thumbnail" rel="noopener noreferrer" style={{html-safe (concat "background-image: url(" this.resource.feature_image ")")}} aria-label="Resource link"></a>
<div class="gh-dashboard-resource-contents">
<div class="gh-dashboard-resource-title">
<h4>Resources</h4>
</div>
<div class="gh-dashboard-resource-body">
<a href="{{this.resource.url}}" target="_blank" class="gh-dashboard-resource-bigarticle" rel="noopener noreferrer">
<div class="gh-dashboard-resource-text">
<h3>{{this.resource.title}}</h3>
<p>{{this.resource.excerpt}}</p>
</div>
</a>
</div>
<div class="gh-dashboard-resource-footer">
<a href="https://ghost.org/resources/" target="_blank" rel="noopener noreferrer">Learn more &rarr;</a>
</div>
</div>
{{/if}}
</article>
</section>