You are here

semanticviews-style.html.twig in Semantic Views 8.2

Default simple view template to display a list of rows.

File

templates/semanticviews-style.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default simple view template to display a list of rows.
  5. *
  6. * @ingroup views_templates
  7. */
  8. #}
  9. {% if title %}
  10. <{{ group.element }}{{ group.attributes }}>
  11. {{ title }}
  12. </{{ group.element }}>
  13. {% endif %}
  14. {% if list.element %}
  15. <{{ list.element }}{{ list.attributes }}>
  16. {% endif %}
  17. {% for id, row in rows %}
  18. {% if row.element %}
  19. <{{ row.element }} {{ row.attributes }}>
  20. {% endif %}
  21. {{ row.content }}
  22. {% if row.element %}
  23. </{{ row.element }}>
  24. {% endif %}
  25. {% endfor %}
  26. {% if list.element %}
  27. </{{ list.element }}>
  28. {% endif %}