{%- from 'macros/misc.html' import render_notification %}


{%- with flashed_messages = get_flashed_messages() %}
  {%- if flashed_messages %}
<div class="notifications">
{%- for text, text_is_safe, category, icon in flashed_messages %}
  {{ render_notification(text|safe if text_is_safe else text, category=category, icon=icon if (icon is not none) else category) }}
{%- endfor %}
</div>
  {%- endif %}
{%- endwith %}

{%- from 'macros/misc.html' import render_notification %}


{%- with flashed_messages = get_flashed_messages() %}
  {%- if flashed_messages %}
<div class="notifications">
{%- for text, text_is_safe, category, icon in flashed_messages %}
  {{ render_notification(text|safe if text_is_safe else text, category=category, icon=icon) }}
{%- endfor %}
</div>
  {%- endif %}
{%- endwith %}

Remove icon fallback to category
Remove icon fallback to category
