wip: UI refactoring

* Login page annoucements
* Cleanup
This commit is contained in:
Antoine Nguyen
2012-04-22 09:33:16 +02:00
parent 29069ee3b1
commit 4d47e2b126
5 changed files with 14 additions and 17 deletions
+4 -3
View File
@@ -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):