mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user