diff -u b/core/modules/system/templates/item-list--inline.html.twig b/core/modules/system/templates/item-list--inline.html.twig --- b/core/modules/system/templates/item-list--inline.html.twig +++ b/core/modules/system/templates/item-list--inline.html.twig @@ -25,7 +25,7 @@ {%- if items -%} {%- for item in items -%} - {{ loop.first ? '' : ', ' }}{{ item.value }} + {{ item.value }}{{ loop.last ? '' : ', ' }} {%- endfor -%} {%- else -%} {{- empty -}} reverted: --- b/core/themes/seven/templates/item-list--inline.html.twig +++ /dev/null @@ -1,33 +0,0 @@ -{# -/** - * @file - * Default theme implementation for an item list for comma separated inline. - * - * Available variables: - * - items: A list of items. Each item contains: - * - attributes: HTML attributes to be applied to each list item. - * - value: The content of the list element. - * - title: The title of the list. - * - 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. - * - * @see template_preprocess_item_list() - * - * @ingroup themeable - */ -#} -{% if items or empty -%} - {%- if title is not empty -%} -

{{ title }}

- {%- endif -%} - - {%- if items -%} - {%- for item in items -%} - {{ loop.first ? '' : ', ' }}{{ item.value }} - {%- endfor -%} - {%- else -%} - {{- empty -}} - {%- endif -%} -{%- endif %} only in patch2: unchanged: --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1726,6 +1726,9 @@ function drupal_common_theme() { 'item_list' => array( 'variables' => array('items' => array(), 'title' => '', 'list_type' => 'ul', 'attributes' => array(), 'empty' => NULL, 'context' => array()), ), + 'item_list__inline' => array( + 'variables' => array('items' => array(), 'title' => '', 'list_type' => 'inline', 'attributes' => array(), 'empty' => NULL, 'context' => array()), + ), 'feed_icon' => array( 'variables' => array('url' => NULL, 'title' => NULL), ),