mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +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
25 lines
1.1 KiB
Handlebars
25 lines
1.1 KiB
Handlebars
<div class="gh-dashboard5-whats-new" {{did-insert this.load}}>
|
|
{{#if (not (or this.loading this.error))}}
|
|
<div class="gh-dashboard-box whats-new {{if this.whatsNew.hasNew "has-new"}}">
|
|
<div class="gh-dashboard-header-container">
|
|
<h4 class="gh-dashboard-header">What's new?</h4>
|
|
{{svg-jar "gift"}}
|
|
</div>
|
|
<div class="content">
|
|
{{#each this.entries as |entry|}}
|
|
<LinkTo @route="whatsnew" @query={{hash entry=entry.slug}}>
|
|
<h2>{{entry.title}}</h2>
|
|
<span class="wn-date">{{moment-format entry.published_at "D MMM YYYY"}}</span>
|
|
{{#if entry.custom_excerpt}}
|
|
<p>{{entry.custom_excerpt}}</p>
|
|
{{/if}}
|
|
</LinkTo>
|
|
{{/each}}
|
|
</div>
|
|
<div class="footer">
|
|
<LinkTo @route="whatsnew" @query={{hash entry=null}} class="green">See more →</LinkTo>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|