From 6f334852ebafbc992617c19bcc877e16f04f1090 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 27 Sep 2017 14:47:37 +0200 Subject: [PATCH] flash messages allow a dismissable parameter --- ordr2/templates/macros.jinja2 | 6 ++++-- ordr2/views/__init__.py | 6 +++--- ordr2/views/account.py | 9 ++++++++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ordr2/templates/macros.jinja2 b/ordr2/templates/macros.jinja2 index 19720c3..42859f8 100644 --- a/ordr2/templates/macros.jinja2 +++ b/ordr2/templates/macros.jinja2 @@ -2,8 +2,10 @@ {% for queue in ('success', 'info', 'warning', 'error') %} {% for message in request.session.pop_flash(queue) %} {% set css_class = 'danger' if queue == 'error' else queue %} -