mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
4e1aa2119c
Closes #354 * Reintroduced the redirect functionality (not logged in, tries to go to `/settings/user/`, is sent to `/login/` with info notification, after login user is taken to `/settings/user/) * Reintroduced the "Successfully logged out" message * Added middleware to scrub passive notifications from `ghost.notifications` after one use basically mimicing client side passive notifications * Removed flash from everywhere. Even from package.json. * Renamed flashed.hbs to notifications.hbs, modified default.hbs accordingly * Added function to parse GET variables on client side
11 lines
373 B
Handlebars
11 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}}
|