You are here

views-view-delimited-list.html.twig in Views Delimited List 2.x

View template to display a delimited list of text rows.

File

templates/views-view-delimited-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * View template to display a delimited list of text rows.
  5. *
  6. * @ingroup views_templates
  7. */
  8. #}
  9. {% if title %}
  10. <h3>{{ title }}</h3>
  11. {% endif %}
  12. <div class="views-delimited-list">
  13. {% if options.prefix %}
  14. <span class="views-delimited-list-prefix">
  15. {{ options.prefix }}
  16. </span>
  17. {% endif %}
  18. {% for i, row in rows %}
  19. {# Row #}
  20. <span class="views-row">
  21. {{- row -}}
  22. </span>
  23. {# Delimiter #}
  24. {% if has_delimiter[i] and options.delimiter %}
  25. <span class="views-row-delimiter">{{ options.delimiter }}</span>
  26. {% endif %}
  27. {# Conjunctive #}
  28. {% if has_conjunctive[i] and options.conjunctive %}
  29. <span class="views-row-conjunctive">{{ options.conjunctive }}</span>
  30. {% endif %}
  31. {% endfor %}
  32. {% if options.suffix %}
  33. <span class="views-delimited-list-suffix">{{ options.suffix }}</span>
  34. {% endif %}
  35. </div>