New simple poller that checks every 2s. if there are new pending release requests. If that's the case, the top notification box is updated.

fixes #227
This commit is contained in:
Antoine Nguyen
2012-04-07 17:44:09 +02:00
parent 2ad7b0a039
commit 8e9d8aef3b
9 changed files with 75 additions and 25 deletions
+9
View File
@@ -60,6 +60,15 @@ def display_messages(msgs):
</script>
""" % (level, text, timeout)
@register.simple_tag
def extra_head_content():
tpl = Template("{% for sc in static_content %}{{ sc|safe }}{% endfor %}")
return tpl.render(
Context(
dict(static_content=events.raiseQueryEvent("GetStaticContent"))
)
)
@register.simple_tag
def load_optionalmenu(user):
menu = events.raiseQueryEvent("UserMenuDisplay", "top_menu_middle", user)