From f45805f17228b9da6e357f0e836f499391257cda Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Sat, 14 Oct 2017 00:42:54 +0200 Subject: [PATCH] Fix alert rendering --- templates/base.html | 14 ++++++++------ templates/profile.html | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/base.html b/templates/base.html index 72a3af8..18a4eff 100644 --- a/templates/base.html +++ b/templates/base.html @@ -24,12 +24,14 @@ {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} - {% for category, message in messages %} - - {% endfor %} +
+ {% for category, message in messages %} + {% set category = 'info' if category == 'message' else category %} + + {% endfor %} +
{% endif %} {% endwith %} diff --git a/templates/profile.html b/templates/profile.html index 60affb1..aba8cbf 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -7,7 +7,7 @@ Hey, {{ current_user.gecos }}! Logout -

Approved applications

+

Authorized applications