diff --git a/templates/system/status-messages.html.twig b/templates/system/status-messages.html.twig index 9881a2c8f7348499f1d27002de72e46db3415ece..2150d50f53fdf1c850cbe5f3fdaecba78fd988c1 100644 --- a/templates/system/status-messages.html.twig +++ b/templates/system/status-messages.html.twig @@ -45,27 +45,27 @@ } %} {% for type, messages in message_list %} -{% - set message_classes = [ - 'alert', - 'alert-' ~ status_classes[type], - 'alert-dismissible', - ] -%} -{# Reset the attribute classes and then add the message specific classes. #} - - - {% if status_headings[type] %} -

{{ status_headings[type] }}

- {% endif %} - {% if messages|length > 1 %} - - {% else %} - {{ messages|first }} - {% endif %} - + {% + set message_classes = [ + 'alert', + 'alert-' ~ status_classes[type], + 'alert-dismissible', + ] + %} + {# Reset the attribute classes and then add the message specific classes. #} + + + {% if status_headings[type] %} +

{{ status_headings[type] }}

+ {% endif %} + {% if messages|length > 1 %} + + {% else %} + {{ messages|first }} + {% endif %} + {% endfor %}