mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +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
26 lines
1.1 KiB
Handlebars
26 lines
1.1 KiB
Handlebars
<div class="gh-dashboard5-list gh-dashboard5-staff-picks" {{did-insert this.load}}>
|
|
{{#if (not (or this.loading this.error))}}
|
|
<div class="gh-dashboard5-title">
|
|
<h4>Staff picks</h4>
|
|
</div>
|
|
<div class="gh-dashboard5-list-body">
|
|
{{#each this.staffPicks as |entry|}}
|
|
<div class="gh-dashboard5-list-item">
|
|
<a class="gh-dashboard5-list-post permalink" href={{set-query-params entry.link utm_source='ghost'}} target="_blank" rel="noopener noreferrer">
|
|
<span>{{entry.title}}</span><br>
|
|
<span class="dashboard-prototype-staff-picks-author">{{entry.creator}}</span>
|
|
</a>
|
|
</div>
|
|
{{else}}
|
|
<div class="gh-dashboard5-list-empty">
|
|
{{svg-jar "no-data-list"}}
|
|
<p>No staff picks yet.</p>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
<div class="gh-dashboard5-list-footer">
|
|
<a href="https://twitter.com/ghoststaffpicks" target="_blank" rel="noopener noreferrer">Follow →</a>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|