mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
b77a8fd0d9
Should close #37. There are persistent and passive notifications. Persistent ones: * are stored on `ghost.notifications`. * have an api made to add / remove them with client side ajax logic (probably not the most elegant, but works) * uses a modified `flashes.hbs` template * will only disappear if user closes the bar * stack Passive * added with backbone view / collection combo * stack * disappears on navigation and when user closes it
8 lines
301 B
Handlebars
8 lines
301 B
Handlebars
{{#if messages}}
|
|
{{#each messages}}
|
|
<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>
|
|
{{/each}}
|
|
{{/if}}
|