Ghost/ghost/admin/app/components/gh-notification.hbs
Gabriel Csapo beb5ae1737 [chore] adds ember-template-lint and fixes all fixable issues (#2238)
no issue

- This will help with the octane migration and you can still run the lint rules even when they are todos. (Checkout the docs at 158b119667/docs/todos.md) The good news is any new code will be checked against the recommended config.
- I fixed all the auto fixable things we could get in this PR as well
2022-02-02 16:09:43 +00:00

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" data-test-button="close-notification" type="button" {{action "closeNotification"}}>
{{svg-jar "close"}}<span class="hidden">Close</span>
</button>