mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
beb5ae1737
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
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" data-test-button="close-notification" type="button" {{action "closeNotification"}}>
|
|
{{svg-jar "close"}}<span class="hidden">Close</span>
|
|
</button>
|