mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-30 12:52:24 -05:00
13 lines
566 B
Twig
13 lines
566 B
Twig
{% spaceless %}
|
|
{% set alertTypeAvaillable = [ 'info', 'success', 'warning', 'error'] %}
|
|
{% if app.session.flashBag is defined %}
|
|
{%- for alertType in alertTypeAvaillable %}
|
|
{%- for alert in app.session.flashBag.get(alertType) %}
|
|
<div class="alert alert-{{ alertType }}" >
|
|
{% if alert.title %}<h4 class="alert-heading">{{ alert.title|trans }}</h4>{% endif %}
|
|
{{ alert.message|trans|raw }}
|
|
</div>
|
|
{%- endfor %}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{% endspaceless %} |