annotate core/modules/views/templates/views-view-list.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents c2387f117808
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation for a view template to display a list of rows.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - attributes: HTML attributes for the container.
Chris@0 8 * - rows: A list of rows for this list.
Chris@0 9 * - attributes: The row's HTML attributes.
Chris@0 10 * - content: The row's contents.
Chris@0 11 * - title: The title of this group of rows. May be empty.
Chris@0 12 * - list: @todo.
Chris@0 13 * - type: Starting tag will be either a ul or ol.
Chris@0 14 * - attributes: HTML attributes for the list element.
Chris@0 15 *
Chris@0 16 * @see template_preprocess_views_view_list()
Chris@0 17 *
Chris@0 18 * @ingroup themeable
Chris@0 19 */
Chris@0 20 #}
Chris@0 21 {% if attributes -%}
Chris@0 22 <div{{ attributes }}>
Chris@0 23 {% endif %}
Chris@0 24 {% if title %}
Chris@0 25 <h3>{{ title }}</h3>
Chris@0 26 {% endif %}
Chris@0 27
Chris@0 28 <{{ list.type }}{{ list.attributes }}>
Chris@0 29
Chris@0 30 {% for row in rows %}
Chris@16 31 <li{{ row.attributes }}>
Chris@16 32 {{- row.content -}}
Chris@16 33 </li>
Chris@0 34 {% endfor %}
Chris@0 35
Chris@0 36 </{{ list.type }}>
Chris@0 37
Chris@0 38 {% if attributes -%}
Chris@0 39 </div>
Chris@0 40 {% endif %}