From 0ee83e1ec2680977536e7b14ce6538cf6925b9c5 Mon Sep 17 00:00:00 2001 From: Moreau Elise <moreau.elise13@gmail.com> Date: Sat, 31 Oct 2020 16:18:14 +0100 Subject: [PATCH] add section for flash messages in layout template --- templates/common/layout.twig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/common/layout.twig b/templates/common/layout.twig index 31caba7..8ffe5b8 100644 --- a/templates/common/layout.twig +++ b/templates/common/layout.twig @@ -54,11 +54,11 @@ {% endblock %} <div class="content" id="content"> - {% if message %} - <div class="ui message"> - {{message}} - </div> - {% endif %} + {% for message in flashMessages %} + <div class="ui message"> + {{message[0]}} + </div> + {% endfor %} {% block content %} {% endblock %} </div> -- GitLab