notifications_extras¶
Module: espressodb.notifications.templatetags.notifications_extras
|
Maps logging levels to bootstrap levels. |
|
Renders notifications |
Renders notification links. |
Additional in template functions for the notifications module.
Maps logging levels to bootstrap levels. Defaults to light.
- Parameters
level (
str
) – The logging level.- Return type
str
Renders notifications
- Parameters
notification (
Notification
) – The notification.hide_close (
bool
) – Hide the has read button in view for this notfication.
Uses template
espressodb/notfications/templates/render_notification.html
.- Return type
Dict
[str
,Any
]
Renders notification links.
- Parameters
user (
User
) – The currently logged in user.
Also adds informations about notifications which are viewable by user.
Uses template
espressodb/notfications/templates/render_notification_links.html
.