commit 47927bfe228982e82743a5edd7cb96e5494460c8 Author: Shane Auckland Date: Wed Apr 10 21:29:36 2013 +0100 939082-new_changes diff --git a/core/modules/system/templates/status-messages.html.twig b/core/modules/system/templates/status-messages.html.twig index 347b895..61ad587 100644 --- a/core/modules/system/templates/status-messages.html.twig +++ b/core/modules/system/templates/status-messages.html.twig @@ -10,6 +10,8 @@ * Available variables: * - messages_display: List of messages to be displayed, grouped by type. * - status_headings: List of all status types. + * - display: (optional) Has a value of e.g. 'status' or 'error' when only + * displaying messages of that type. * * @see template_preprocess() * @see template_preprocess_status_messages() @@ -19,7 +21,7 @@ #} {% for type, messages in messages_display %}
- {% if type in status_headings %} + {% if status_headings[type] %}

{{ status_headings[type] }}

{% endif %} {% if messages|length > 1 %} @@ -33,3 +35,4 @@ {% endif %}
{% endfor %} +