2020-02-27 12:19:29 +03:00
|
|
|
<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>
|
2019-03-06 14:45:47 +03:00
|
|
|
<div class="gh-notification-content" data-test-text="notification-content">
|
2020-02-27 12:19:29 +03:00
|
|
|
<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}}
|
2015-05-21 20:03:24 +03:00
|
|
|
</div>
|
2022-02-02 19:09:43 +03:00
|
|
|
<button class="gh-notification-close" data-test-button="close-notification" type="button" {{action "closeNotification"}}>
|
2019-05-13 15:43:53 +03:00
|
|
|
{{svg-jar "close"}}<span class="hidden">Close</span>
|
|
|
|
</button>
|