mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
09435ecf76
no issue Keeps component JS backing files and template files in the same directory which avoids hunting across directories when working with components. Also lets you see all components when looking at one directory, whereas previously template-only or js-only components may not have been obvious without looking at both directories. - ran [codemod](https://github.com/ember-codemods/ember-component-template-colocation-migrator/) for app-level components - manually moved in-repo-addon component templates in `lib/koenig-editor` - removed all explicit `layout` imports as JS/template associations are now made at build-time removing the need for them - updated `.embercli` to default to new flat component structure
32 lines
1.2 KiB
Handlebars
32 lines
1.2 KiB
Handlebars
<header class="modal-header gh-wn-header" data-test-modal="whats-new">
|
|
<img src="assets/img/whats-new-header-bg.svg" class="background-img" />
|
|
<span>{{svg-jar "gift" class="w5 h5 fill-white"}}</span>
|
|
<h2>What's new?</h2>
|
|
</header>
|
|
|
|
<button class="close gh-wn-close" href title="Close" {{on "click" this.closeModal}}>
|
|
{{svg-jar "close"}}
|
|
</button>
|
|
|
|
<div class="modal-body gh-wn-content">
|
|
{{#each this.whatsNew.entries as |entry|}}
|
|
<div class="gh-wn-entry">
|
|
<h4>{{moment-format entry.published_at "DD MMMM YYYY"}}</h4>
|
|
<h1 class="f1 fw6 ma0 pa0 mb3">{{entry.title}}</h1>
|
|
{{#if entry.feature_image}}
|
|
<img class="mb5" src={{entry.feature_image}}>
|
|
{{/if}}
|
|
{{#if entry.custom_excerpt}}
|
|
<p>{{entry.custom_excerpt}}</p>
|
|
<a href={{entry.url}} class="dib fw6 mb6" target="_blank" rel="noopener noreferrer">Read the full post →</a>
|
|
{{else}}
|
|
{{{entry.html}}}
|
|
{{/if}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
<div class="modal-footer gh-wn-footer">
|
|
<a href={{this.whatsNew.changelogUrl}} target="_blank" rel="noopener noreferrer">
|
|
See all past updates
|
|
</a>
|
|
</div> |