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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. /**
  20. * Custom template to display unformatted rows for the view "base_de_donnees".
  21. */
  22. #}
  23. {%
  24. set view_wrapper_class = [
  25. default_row_class ? 'views-row-wrapper',
  26. ]
  27. %}
  28. <div class="view-content {{ is_filtered ? 'grid-layout' : 'use-slider' }}">
  29. {% if grouped_rows is defined %}
  30. {% for type_class, group in grouped_rows %}
  31. <div class="view-type-slide {{ type_class }}">
  32. <h3 class="{{ type_class }}">{{ group.label }}</h3>
  33. {% if not is_filtered %}
  34. <button class="tout-voir" type="button" style="" target="_blank"><a href="http://dev.eql.fr//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>
  35. {% endif %}
  36. <div class="{{ is_filtered ? 'grid-layout-inner' : 'views-row-wrapper' }}">
  37. {% for row in group.rows %}
  38. <div{{ row.attributes.addClass('views-row') }}>
  39. {{ row.content }}
  40. </div>
  41. {% endfor %}
  42. </div>
  43. </div>
  44. {% endfor %}
  45. {% else %}
  46. <div class="grid-layout-inner">
  47. {% for row in rows %}
  48. <div{{ row.attributes.addClass('views-row') }}>
  49. {{ row.content }}
  50. </div>
  51. {% endfor %}
  52. </div>
  53. {% endif %}
  54. </div>