From 9333df3b7fece97cc4df1f4bd50f95a2f924563c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 15 Oct 2013 22:30:45 +0200 Subject: Support flashing --- templates/layout.jinja | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates/layout.jinja') diff --git a/templates/layout.jinja b/templates/layout.jinja index 77c383d..ab5b001 100644 --- a/templates/layout.jinja +++ b/templates/layout.jinja @@ -33,6 +33,15 @@
+ {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} +
    + {% for cat,msg in messages %} +
  • {{ msg }}
  • + {% endfor %} +
+ {% endif %} + {% endwith %}

{% block heading -%}{%- endblock %}

{% block content %}{% endblock %}
-- cgit v1.2.3