{#
/**
 * @file
 * Theme override to display a view of unformatted rows.
 *
 * Available variables:
 * - title: The title of this group of rows. May be empty.
 * - rows: A list of the view's row items.
 *   - attributes: The row's HTML attributes.
 *   - content: The row's content.
 * - view: The view object.
 * - default_row_class: A flag indicating whether default classes should be
 *   used on rows.
 *
 * @see template_preprocess_views_view_unformatted()
 */
#}

{%
  set view_wrapper_class = [
  default_row_class ? 'views-row-wrapper',
  ]
%}
{% if grouped_rows is defined %}
  {% for type_class, group in grouped_rows %}
    <div class="view-type-slide {{ type_class }}">
      <h3 class="{{ type_class }}">{{ group.label }}</h3>
      <div class="views-row-wrapper">
        {% for row in group.rows %}
          <div{{ row.attributes.addClass('views-row') }}>
            {{ row.content }}
          </div>
        {% endfor %}
      </div>
    </div>
  {% endfor %}
{% else %}
  {% for row in rows %}
    <div{{ row.attributes.addClass('views-row') }}>
      {{ row.content }}
    </div>
  {% endfor %}
{% endif %}
