templates/timeline/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Portfolio -- TimeLine!{% endblock %}
  3. {% block content %}
  4. <div class="timelines">
  5. Historique
  6. </div>   
  7. <div class="timeline">
  8.     {% for item in timelines %}
  9.     
  10.         {% if loop.index is not divisible by(2) %}
  11.             <div class="timeline__component">
  12.                 <div class="timeline__date timeline__date--right">
  13.                     {{item.date|format_date(locale="fr")}} -- {{ item.date|format_date(locale="fr") }}
  14.                 </div>
  15.             </div>
  16.             <div class="timeline__middle">
  17.                 <div class="timeline__point"></div>
  18.             </div>
  19.             <div class="timeline__component timeline__component--bg">
  20.                 <h2 class="timeline__title">
  21.                     {{ item.label }}
  22.                 </h2>
  23.                 <p class="timeline__paragraph">
  24.                     {{ item.description }}
  25.                 </p>
  26.             </div>
  27.         {% else %}
  28.             <div class="timeline__component timeline__component--bg">
  29.                 <h2 class="timeline__title">
  30.                     {{ item.label }}
  31.                 </h2>
  32.                 <p class="timeline__paragraph">
  33.                     {{ item.description }}
  34.                 </p>
  35.             </div>
  36.         
  37.             <div class="timeline__middle">
  38.                 <div class="timeline__point"></div>
  39.             </div>
  40.             <div class="timeline__component">
  41.                 <div class="timeline__date">
  42.                     {{item.date|format_date(locale="fr")}} -- {{ item.date|format_date(locale="fr") }}
  43.                 </div>
  44.             </div>
  45.         {% endif %}
  46.     {% endfor %}
  47. </div>
  48. {% endblock %}