mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
9b8875c4be
refs https://github.com/TryGhost/Team/issues/1486 Includes a new component that correctly fetches the changelog and displays them in the old format (still requires some design changes).
25 lines
1.0 KiB
Handlebars
25 lines
1.0 KiB
Handlebars
<div {{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>
|