0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/views/partials/flashes.hbs
Gabor Javorszky 6c48505701 Fixed persistent success notifications
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.
2013-08-05 13:56:30 +01:00

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}}