mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
wip: UI refactoring
* Login page annoucements * Cleanup
This commit is contained in:
@@ -130,10 +130,11 @@ def pagination_bar(page):
|
||||
|
||||
@register.simple_tag
|
||||
def alert(msg, typ):
|
||||
return """<div class="alert alert-%s">
|
||||
t = Template("""<div class="alert alert-{{ type }}">
|
||||
<a class="close" data-dismiss="alert">×</a>
|
||||
%s
|
||||
</div>""" % (typ, msg)
|
||||
{{ msg }}
|
||||
</div>""")
|
||||
return t.render(Context(dict(type=typ, msg=msg)))
|
||||
|
||||
@register.simple_tag
|
||||
def render_link(linkdef, mdclass=None):
|
||||
|
||||
Reference in New Issue
Block a user