views-view-unformatted--base-de-donnees.html.twig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  18. {%
  19. set view_wrapper_class = [
  20. default_row_class ? 'views-row-wrapper',
  21. ]
  22. %}
  23. {% if grouped_rows is defined %}
  24. {% for type_class, group in grouped_rows %}
  25. <div class="view-type-slide {{ type_class }}">
  26. <h3 class="{{ type_class }}">{{ group.label }}</h3>
  27. <button class="tout-voir" type="button" style="" target="_blank"><a href="https://stage.eql.figli.io/ressources?field_type_de_media_target_id=All&field_type_de_ressource_target_id=595&field_mots_clefs_target_id=All&field_date_de_parution_value=&combine="> Tout voir</a></button>
  28. <div class="views-row-wrapper">
  29. {% for row in group.rows %}
  30. <div{{ row.attributes.addClass('views-row') }}>
  31. {{ row.content }}
  32. </div>
  33. {% endfor %}
  34. </div>
  35. </div>
  36. {% endfor %}
  37. {% else %}
  38. {% for row in rows %}
  39. <div{{ row.attributes.addClass('views-row') }}>
  40. {{ row.content }}
  41. </div>
  42. {% endfor %}
  43. {% endif %}