summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Carver2018-01-20 21:16:23 (GMT)
committerMark Carver2018-01-20 21:16:23 (GMT)
commitc69897b4ed3a16b2abd3d87c4ee04af039e7d940 (patch)
treea0ae04893cfe0dad885428f5c92aaade1380ebbd
parentff8708bb8edcaac701812e5e6969e2c440c08d50 (diff)
Fix indentation
Issue #2892936 by markcarver, i.bajrai, alexeiseremet: too many classes in status-messages.html.twig Signed-off-by: Mark Carver <mark.carver@me.com>
-rw-r--r--templates/system/status-messages.html.twig46
1 files changed, 23 insertions, 23 deletions
diff --git a/templates/system/status-messages.html.twig b/templates/system/status-messages.html.twig
index 9881a2c..2150d50 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. #}
-<div{{ attributes.setAttribute('class', classes).addClass(message_classes).setAttribute('role', 'alert') }}>
- <button role="button" class="close" data-dismiss="alert" aria-label="{{ 'Close'|t }}"><span aria-hidden="true">&times;</span></button>
- {% if status_headings[type] %}
- <h4 class="sr-only">{{ status_headings[type] }}</h4>
- {% endif %}
- {% if messages|length > 1 %}
- <ul class="item-list item-list--messages">
- {% for message in messages %}
- <li class="item item--message">{{ message }}</li>
- {% endfor %}
- </ul>
- {% else %}
- {{ messages|first }}
- {% endif %}
-</div>
+ {%
+ set message_classes = [
+ 'alert',
+ 'alert-' ~ status_classes[type],
+ 'alert-dismissible',
+ ]
+ %}
+ {# Reset the attribute classes and then add the message specific classes. #}
+ <div{{ attributes.setAttribute('class', classes).addClass(message_classes).setAttribute('role', 'alert') }}>
+ <button role="button" class="close" data-dismiss="alert" aria-label="{{ 'Close'|t }}"><span aria-hidden="true">&times;</span></button>
+ {% if status_headings[type] %}
+ <h4 class="sr-only">{{ status_headings[type] }}</h4>
+ {% endif %}
+ {% if messages|length > 1 %}
+ <ul class="item-list item-list--messages">
+ {% for message in messages %}
+ <li class="item item--message">{{ message }}</li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ {{ messages|first }}
+ {% endif %}
+ </div>
{% endfor %}