mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
b7be74907f
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}}
|