From 095a3dcdc799163c0b8af3bac9c0819b5adeb879 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 25 Oct 2024 16:16:04 +0000 Subject: Change the way the flash_me functions such that there's no margin flash_me handles displaying various notifications and error messages (like when you log out, or when you token expires) --- gn2/wqflask/templates/base_macro.html | 8 +++----- gn2/wqflask/templates/index_page.html | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/base_macro.html b/gn2/wqflask/templates/base_macro.html index 7fcb6fe7..4cb8e1b7 100644 --- a/gn2/wqflask/templates/base_macro.html +++ b/gn2/wqflask/templates/base_macro.html @@ -1,11 +1,9 @@ {% macro flash_me() -%} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} -
- {% for category, message in messages %} - - {% endfor %} -
+ {% for category, message in messages %} + + {% endfor %} {% endif %} {% endwith %} {% endmacro %} diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html index bacf7557..3fdfee60 100755 --- a/gn2/wqflask/templates/index_page.html +++ b/gn2/wqflask/templates/index_page.html @@ -61,8 +61,8 @@ {% include "gsearch.html" %} {% endblock %} {% block content %} +{{ flash_me() }}
- {{ flash_me() }} {% if anon_collections | length > 0 %}
-- cgit v1.2.3