From 66f15e0808c5fb0a91ce47d5c3a2dca5a91f809d Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 26 Mar 2019 14:20:23 +0000 Subject: Fancy message flashing --- app/templates/base.html | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'app/templates') diff --git a/app/templates/base.html b/app/templates/base.html index 9812c5f..f020d5f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -1,4 +1,5 @@ {% extends 'bootstrap/base.html' %} +{% import "bootstrap/utils.html" as util %} {% block styles %} {{ super() }} @@ -43,15 +44,8 @@ {% block content %}
- {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - - {% endif %} - {% endwith %} + + {{ util.flashed_messages(dismissible=True) }} {% block app_content %} {% endblock %} -- cgit v1.2.3