mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Closes #333 * Refactored the Ghost.Notifications View bundle * Added a new initialization of the NotificationCollection (hacky, but at least satisfies JSLint). This was needed as the reason the persistent success notification couldn't be dismissed was that prerendered DOM elements weren't picked up as BB Views beforehand, and thus no events were bound to them.
10 lines
373 B
Handlebars
10 lines
373 B
Handlebars
{{#if messages}}
|
|
{{#each messages}}
|
|
<div class="js-bb-notification">
|
|
<section class="notification{{#if type}}-{{type}}{{/if}} notification-{{status}} js-notification">
|
|
{{message}}
|
|
<a class="close" href="#" data-id="{{id}}"><span class="hidden">Close</span></a>
|
|
</section>
|
|
</div>
|
|
{{/each}}
|
|
{{/if}}
|