diff -u b/core/modules/system/templates/inline-list.html.twig b/core/modules/system/templates/inline-list.html.twig --- b/core/modules/system/templates/inline-list.html.twig +++ b/core/modules/system/templates/inline-list.html.twig @@ -8,7 +8,6 @@ * - attributes: HTML attributes to be applied to each list item. * - value: The content of the list element. * - separator: A string to separate list items. - * - list_type: The tag for list element ("ul" or "ol"). * - attributes: HTML attributes to be applied to the list. * - empty: A message to display when there are no items. Allowed value is a * string or render array. @@ -21,9 +20,6 @@ -{% if items or empty -%} - {%- if items -%} - {%- for item in items -%} - {{ item.value }}{{ loop.last ? '' : separator }} - {%- endfor -%} - {%- else -%} - {{- empty -}} - {%- endif -%} -{%- endif %} +{%- for item in items -%} + {{ item.value }}{{ loop.last ? '' : separator }} +{%- else -%} + {{- empty -}} +{%- endfor -%} +