You are here

views-view-complex-grouping-level.html.twig in Views Complex Grouping 8

Default theme implementation 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.

File

templates/views-view-complex-grouping-level.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a view of unformatted rows.
  5. *
  6. * Available variables:
  7. * - title: The title of this group of rows. May be empty.
  8. * - rows: A list of the view's row items.
  9. * - attributes: The row's HTML attributes.
  10. * - content: The row's content.
  11. * - view: The view object.
  12. * - default_row_class: A flag indicating whether default classes should be
  13. * used on rows.
  14. *
  15. * @see template_preprocess_views_view_unformatted()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {%
  21. set classes = [
  22. 'views-complex-grouping-level',
  23. 'level-' ~ grouping_level,
  24. 'branch-' ~ grouping_branch,
  25. ]
  26. %}
  27. <div{{ attributes.addClass(classes) }}>
  28. {% if title %}
  29. <h3>{{ title }}</h3>
  30. {% endif %}
  31. {% if fields %}
  32. <div class="views-complex-grouping-extra-fields">
  33. {% for field in fields %}
  34. {{ field }}
  35. {% endfor %}
  36. </div>
  37. {% endif %}
  38. <div class="views-complex-grouping-content">
  39. {{ content }}
  40. </div>
  41. </div>