annotate core/modules/views/templates/views-view-unformatted.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 to display a view of unformatted rows.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - title: The title of this group of rows. May be empty.
Chris@0 8 * - rows: A list of the view's row items.
Chris@0 9 * - attributes: The row's HTML attributes.
Chris@0 10 * - content: The row's content.
Chris@0 11 * - view: The view object.
Chris@0 12 * - default_row_class: A flag indicating whether default classes should be
Chris@0 13 * used on rows.
Chris@0 14 *
Chris@0 15 * @see template_preprocess_views_view_unformatted()
Chris@0 16 *
Chris@0 17 * @ingroup themeable
Chris@0 18 */
Chris@0 19 #}
Chris@0 20 {% if title %}
Chris@0 21 <h3>{{ title }}</h3>
Chris@0 22 {% endif %}
Chris@0 23 {% for row in rows %}
Chris@0 24 {%
Chris@0 25 set row_classes = [
Chris@0 26 default_row_class ? 'views-row',
Chris@0 27 ]
Chris@0 28 %}
Chris@0 29 <div{{ row.attributes.addClass(row_classes) }}>
Chris@16 30 {{- row.content -}}
Chris@0 31 </div>
Chris@0 32 {% endfor %}