mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-04 18:32:33 -05:00
14 lines
535 B
HTML
14 lines
535 B
HTML
{% from "components/banner.html" import banner %}
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
{{ banner(
|
|
message,
|
|
'default' if ((category == 'default') or (category == 'default_with_tick')) else 'dangerous',
|
|
delete_button="Yes, {}".format(category) if category in ['delete', 'remove'] else None,
|
|
with_tick=True if category == 'default_with_tick' else False
|
|
)}}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|