From e52c18a09cabd374093b06ef0f521767cd228ba6 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 24 Jun 2020 23:39:05 +0530 Subject: make it better --- app/templates/flash_messages.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/templates/flash_messages.html (limited to 'app/templates/flash_messages.html') diff --git a/app/templates/flash_messages.html b/app/templates/flash_messages.html new file mode 100644 index 0000000..b524c24 --- /dev/null +++ b/app/templates/flash_messages.html @@ -0,0 +1,7 @@ +{% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for category, message in messages %} +
{{ message }}
+ {% endfor %} + {% endif %} +{% endwith %} \ No newline at end of file -- cgit v1.2.3