1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-30 12:52:24 -05:00
wallabag/app/views/_alerts.twig
2014-01-14 15:51:34 +01:00

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 %}