2016-02-01 12:15:38 +00:00
|
|
|
{% from "components/banner.html" import banner %}
|
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
|
|
{% if messages %}
|
|
|
|
|
{% for category, message in messages %}
|
|
|
|
|
{{ banner(
|
|
|
|
|
message,
|
2016-02-05 10:33:14 +00:00
|
|
|
'default' if ((category == 'default') or (category == 'default_with_tick')) else 'dangerous',
|
2016-03-23 10:46:31 +00:00
|
|
|
delete_button="Yes, {}".format(category) if category in ['delete', 'remove'] else None,
|
2016-02-03 14:43:16 +00:00
|
|
|
with_tick=True if category == 'default_with_tick' else False
|
2016-02-01 12:15:38 +00:00
|
|
|
)}}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endwith %}
|