From 6f4360adb208917dfd584abc2bd79b2a5cd1431b Mon Sep 17 00:00:00 2001 From: Vyacheslav Anzhiganov Date: Tue, 5 Apr 2016 00:37:29 +0300 Subject: [PATCH] flash messaging prepare --- SWSCloudCore/templates/default/_header.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/SWSCloudCore/templates/default/_header.html b/SWSCloudCore/templates/default/_header.html index beb883a..93c2758 100644 --- a/SWSCloudCore/templates/default/_header.html +++ b/SWSCloudCore/templates/default/_header.html @@ -34,3 +34,16 @@ +{% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} +
+
+
    + {% for category, message in messages %} +
  • {{ message }}
  • + {% endfor %} +
+
+
+ {% endif %} +{% endwith %}