diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-06-24 23:39:05 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-06-24 23:39:05 +0530 |
commit | e52c18a09cabd374093b06ef0f521767cd228ba6 (patch) | |
tree | 6548d357ba45e75334da8c225a0c6cd5f77f0850 /app/templates/flash_messages.html |
make it better
Diffstat (limited to 'app/templates/flash_messages.html')
-rw-r--r-- | app/templates/flash_messages.html | 7 |
1 files changed, 7 insertions, 0 deletions
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 %} + <div class="alert alert-{{ category }}">{{ message }}</div> + {% endfor %} + {% endif %} +{% endwith %}
\ No newline at end of file |