From 9dff1815d20e8210bf3379a2c4447f8ed1d62a99 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 21 Jul 2015 12:32:20 -0300 Subject: [PATCH] Add feedback messages to base template (with Foundation markup) --- templates/base.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index eebfc7be4..c934b520d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -26,7 +26,16 @@ {% block content_container %} {# FIXME: row class is not for that: replace it keeping the layout (notice width) #}
- {% block content %}{% endblock %} + + {# Feedback messages #} + {% for message in messages %} +
+ {{ message|safe }} + × +
+ {% endfor %} + + {% block content %}{% endblock %}
{% endblock %}