From 7642621a1975d4fc57471ea2ca724e02cf52fdee Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Sat, 16 Jan 2021 16:51:39 +0100 Subject: [PATCH] ### 0.0.7 Release * Issue #8 WhoServiceUpdate.update_db_short() * Issue #9 URL: /who/update/short * Issue #10 async who_update_short_task * Issue #11 WhoServiceUpdate.__update_who_global_data_short() * Issue #12 better layout for flash messages --- README.md | 1 + templates/fragment_flashed_messages.html | 5 +++++ templates/layout.html | 4 +--- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 templates/fragment_flashed_messages.html diff --git a/README.md b/README.md index 4145beb7..18a73037 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ * Issue #9 URL: /who/update/short * Issue #10 async who_update_short_task * Issue #11 WhoServiceUpdate.__update_who_global_data_short() +* Issue #12 better layout for flash messages ### 0.0.8 Release * Issue #3 ORM: 3NF for ecdc_europa_data_import diff --git a/templates/fragment_flashed_messages.html b/templates/fragment_flashed_messages.html new file mode 100644 index 00000000..7a44176f --- /dev/null +++ b/templates/fragment_flashed_messages.html @@ -0,0 +1,5 @@ +<div class="fragment-flash-messages"> +{% for message in get_flashed_messages() %} + <div class="alert alert-success" role="alert">{{ message }}</div> +{% endfor %} +</div> \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html index abde6320..12a19b08 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -58,9 +58,7 @@ <main> <div class="container"> - {% for message in get_flashed_messages() %} - <p style="color: red;">{{ message }}</p> - {% endfor %} + {% include 'fragment_flashed_messages.html' %} {% block main_container %}{% endblock %} </div> </main> -- GitLab