mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
* New top zone to display notifications
* Number of pending release requets now appears in that new zone fixes #226
This commit is contained in:
@@ -53,6 +53,7 @@ events = [
|
||||
|
||||
"GetAnnouncement",
|
||||
|
||||
"TopNotifications",
|
||||
"AdminFooterDisplay",
|
||||
]
|
||||
|
||||
|
||||
@@ -66,6 +66,11 @@ def load_optionalmenu(user):
|
||||
return template.loader.render_to_string('common/menulist.html',
|
||||
{"entries" : menu, "user" : user})
|
||||
|
||||
@register.simple_tag
|
||||
def load_notifications(user):
|
||||
content = events.raiseQueryEvent("TopNotifications", user)
|
||||
return "".join(content)
|
||||
|
||||
@register.simple_tag
|
||||
def render_form(form, tpl=None):
|
||||
if tpl is not None:
|
||||
|
||||
Reference in New Issue
Block a user