* New top zone to display notifications

* Number of pending release requets now appears in that new zone

fixes #226
This commit is contained in:
Antoine Nguyen
2012-04-07 15:59:55 +02:00
parent a82be58dc4
commit 2ad7b0a039
6 changed files with 40 additions and 18 deletions
+1
View File
@@ -53,6 +53,7 @@ events = [
"GetAnnouncement",
"TopNotifications",
"AdminFooterDisplay",
]
+5
View File
@@ -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: