]> Raphaƫl G. Git Repositories - userbundle/blob - templates/_message.html.twig
Add site and title to translated strings
[userbundle] / templates / _message.html.twig
1 {# pass an array argument to get the messages of those types (['warning', 'error']) #}
2 {% for label, messages in app.flashes %}
3 {% if messages %}
4 <section class="message {{label}}">
5 <ul>
6 {% for message in messages %}
7 <li>{{ message }}</li>
8 {% endfor %}
9 </ul>
10 </section>
11 {% endif %}
12 {% endfor %}