mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +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
30 lines
1.0 KiB
Handlebars
30 lines
1.0 KiB
Handlebars
<div class="gh-notification-icon">
|
|
{{#if this.message.icon}}
|
|
{{svg-jar this.message.icon}}
|
|
{{else}}
|
|
{{#if (eq this.message.type "success")}}
|
|
{{svg-jar "check-circle"}}
|
|
{{else if (eq this.message.type "error")}}
|
|
{{svg-jar "warning-stroke"}}
|
|
{{else if (eq this.message.type "warn")}}
|
|
{{svg-jar "warning-stroke"}}
|
|
{{else}}
|
|
{{svg-jar "check-circle"}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
<div class="gh-notification-content" data-test-text="notification-content">
|
|
<span class="gh-notification-title">{{this.message.message}}</span>
|
|
|
|
{{#if this.message.description}}
|
|
<p>{{this.message.description}}</p>
|
|
{{/if}}
|
|
|
|
{{#if this.message.actions}}
|
|
<span class="gh-notification-actions">{{this.message.actions}}</span>
|
|
{{/if}}
|
|
</div>
|
|
<button class="gh-notification-close" {{action "closeNotification"}} data-test-button="close-notification">
|
|
{{svg-jar "close"}}<span class="hidden">Close</span>
|
|
</button>
|