Add notification count inside a badge on the notification link.

Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
Eric Riggs
2018-03-07 19:52:12 -04:00
committed by Roberto Rosario
parent ee75f0e92d
commit 6aca0cd874
3 changed files with 45 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ link_user_events = Link(
link_user_notifications_list = Link(
html_data={
'apw-attribute': 'count', 'apw-interval': '5000',
'apw-url': '/api/notifications/'
}, icon='fa fa-bell', text=get_notification_count,
view='events:user_notifications_list'
'apw-url': '/api/notifications/',
'apw-callback': 'App.mayanNotificationBadge'
}, icon='fa fa-bell', text='', view='events:user_notifications_list'
)