diff --git a/templates/fragments/flash.html b/templates/fragments/flash.html index a572716e..518f27a5 100644 --- a/templates/fragments/flash.html +++ b/templates/fragments/flash.html @@ -1,6 +1,10 @@ {% from "components/alert.html" import Alert %} -{% with messages = get_flashed_messages(with_categories=true) %} +{% if not category_filter %} + {% set category_filter=["success", "info", "warning", "error"] %} +{% endif %} + +{% with messages = get_flashed_messages(with_categories=true, category_filter=category_filter) %} {% if messages %} {% for category, message_config in messages %} {{ Alert(message_config["title"], message=message_config.get("message"), level=category) }} diff --git a/templates/login.html b/templates/login.html index 861d3ce8..4915b46c 100644 --- a/templates/login.html +++ b/templates/login.html @@ -11,6 +11,12 @@
+ + {% with %} + {% set category_filter=["error"] %} + {% include "fragments/flash.html" %} + {% endwith %} +

Access the JEDI Cloud

@@ -18,7 +24,10 @@
- {% include "fragments/flash.html" %} + {% with %} + {% set category_filter=["success", "info", "warning"] %} + {% include "fragments/flash.html" %} + {% endwith %} {{ Alert('Certificate Selection', message='When you are prompted to select a certificate, please select E-mail Certificate from the provided choices.',