extrait-projets.html.twig 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div id="extrait-publique" class="container">
  2. {% set utilite = { items: {'@page.children': '/projets/publique'} } %}
  3. {% for p in page.collection(utilite).order('date', 'desc').slice(0, 4) %}
  4. {% block extrait_cards_publiques %}
  5. {% include 'partials/projet_card.html.twig' %}
  6. {% endblock %}
  7. {% endfor %}
  8. <div>
  9. <a href="/projets?filter=publique" class="projets-link-filter">
  10. <p><span>Consulter tous nos projets</span></p>
  11. <p><span>d'utilité <i id="publique-link">publique</i></span><span class="picto" data-src="{{ url('theme://images/pictos/arrow-right.svg') }}" aria-hidden="true"></span></p>
  12. </a>
  13. </div>
  14. </div>
  15. <div id="extrait-sociale" class="container">
  16. {% set utilite = { items: {'@page.children': '/projets/sociale'} } %}
  17. {% for p in page.collection(utilite).order('date', 'desc').slice(0, 4) %}
  18. {% block extrait_cards_sociales %}
  19. {% include 'partials/projet_card.html.twig' %}
  20. {% endblock %}
  21. {% endfor %}
  22. <div>
  23. <a href="/projets?filter=sociale" class="projets-link-filter">
  24. <p><span>Consulter tous nos projets</span></p>
  25. <p><span>d'utilité <i id="sociale-link">sociale</i></span><span class="picto" data-src="{{ url('theme://images/pictos/arrow-right.svg') }}" aria-hidden="true"></span></p>
  26. </a>
  27. </div>
  28. </div>
  29. <div id="extrait-culturelle" class="container">
  30. {% set utilite = { items: {'@page.children': '/projets/culturelle'} } %}
  31. {% for p in page.collection(utilite).order('date', 'desc').slice(0, 4) %}
  32. {% block extrait_cards_culturelles %}
  33. {% include 'partials/projet_card.html.twig' %}
  34. {% endblock %}
  35. {% endfor %}
  36. <div>
  37. <a href="/projets?filter=culturelle" class="projets-link-filter">
  38. <p><span>Consulter tous nos projets</span></p>
  39. <p><span>d'utilité <i id="culturelle-link">culturelle</i></span><span class="picto" data-src="{{ url('theme://images/pictos/arrow-right.svg') }}" aria-hidden="true"></span></p>
  40. </a>
  41. </div>
  42. </div>