From 06f67d8f53a87bd6487a06f193f8ad820e372173 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 27 Dec 2013 15:07:46 +0100 Subject: Improved Flask flash messages. --- pyaggr3g470r/templates/layout.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyaggr3g470r/templates/layout.html') diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 0d3f05a3..9f1deeab 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -78,20 +78,18 @@ +
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} - {% for category, message in messages %} -
{{ message }}
- {% endfor %} - {% endif %} {% endwith %} +
{% block content %}{% endblock %} -- cgit