head.html.twig 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div class="columns large-12 medium-12 small-12">
  2. <div class="row head">
  3. {% if page.slug == "outils-et-ressources" %}
  4. {% set source = page.header.media_thumbnail|first.name %}
  5. {% else %}
  6. {% set source = page.header.media_thumbnail %}
  7. {% endif %}
  8. {% if page.parent.slug != "coalitions" %}
  9. {% if source %}
  10. <div class="columns large-12 medium-12 small-12 image_wrapper">
  11. <img src="{{ page.url }}/{{ source }}" alt="">
  12. </div>
  13. {% endif %}
  14. <div class="columns large-12 medium-12 small-12 title_wrapper">
  15. <div class="title row align-bottom">
  16. <div class="columns large-7 medium-7 small-12">
  17. <mark>{{ page.title }}</mark>
  18. </div>
  19. </div>
  20. </div>
  21. {% else %}
  22. <div class="columns large-12 head_coa coa_intro">
  23. <div class="row">
  24. <div style="background-color: white;" class="columns large-10 large-offset-1 medium-10 medium-offset-1 coa_info">
  25. <div class="row">
  26. <div class="columns small-6">
  27. <h2>{{ page.title }}</h2>
  28. <p>
  29. {% if lang == "fr" %}
  30. Créée en <b>{{ page.header.info.date }}</b><br/>
  31. &#8213;&nbsp;<b>{{ page.header.info.nb }}</b> organisations<br/>
  32. <u>Organisation coordinatrice</u>&nbsp;:<br/>
  33. <b>{{ page.header.info.orga }}</b>
  34. {% else %}
  35. Created in <b>{{ page.header.info.date }}</b><br/>
  36. &#8213;&nbsp;<b>{{ page.header.info.nb }}</b> organisations<br/>
  37. <u>Coordinating organization</u>&nbsp;:<br/>
  38. <b>{{ page.header.info.orga }}</b>
  39. {% endif %}
  40. </p>
  41. </div>
  42. <div class="columns small-6">
  43. <img src="{{ page.url }}/{{ source }}" alt=""></div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. {% endif %}
  49. </div>
  50. </div>