From: Tollef Fog Heen Date: Sat, 28 Jul 2012 08:46:28 +0000 (+0200) Subject: Move messages to a more sensible place and start integrating with bootstrap X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=182db674b68df4a4a4ea40960dbc07bbe23df472;p=peojumk Move messages to a more sensible place and start integrating with bootstrap --- diff --git a/templates/base.html b/templates/base.html index 069c819..1c28fe1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -64,16 +64,6 @@ - {% block messages %} -
- {% if messages %} - - {% endif %} -
- {% endblock messages %} -
@@ -86,6 +76,16 @@
+ {% block messages %} + {% if messages %} + {% for message in messages %} +
+ {{ message }} +
+ {% endfor %} + {% endif %} + {% endblock messages %} + {% block pretitle %}{% endblock %} {% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} {% block content %}