mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
73be0780b9
Refs #3160 - gh-notifications component now takes an optional notify parameter. If present it will be invoked as an action when a notification is added or removed. - Add a data-notification-count attribute to the main container that tracks the number of "top" notification messages that are currently being shown.
12 lines
301 B
Handlebars
12 lines
301 B
Handlebars
{{#unless hideNav}}
|
|
{{partial "navbar"}}
|
|
{{/unless}}
|
|
|
|
<main role="main" id="main" {{bind-attr data-notification-count=topNotificationCount}}>
|
|
{{gh-notifications location="top" notify="topNotificationChange"}}
|
|
{{gh-notifications location="bottom"}}
|
|
|
|
{{outlet}}
|
|
</main>
|
|
{{outlet modal}}
|