{% extends('base.html.twig') %} {% block body %} {% set trans_month_hash = { "January": "Janvier", "February": "Févrié", "March": "Mars", "April": "Avril", "May": "Mai", "June": "Juin", "July": "Juillet", "August": "Aout", "September": "Septembre", "October": "Octobre", "November": "Novenbre", "December": "Décembre" } %} {% set trans_month_hash2 = { "Jan": "JAN", "Feb": "FEV", "Mar": "MAR", "Apr": "AVR", "Sep": "SEP", "Oct": "OCT", "Nov": "NOV", "Dec": "DEC" } %}
{% for match in resultat %} {% if ((loop.index0==0) or (match.date.start|date("Y-W")!=resultat[loop.index0-1].date.start|date("Y-W"))) %} {% endif %} {% endfor %}
{% for match in resultat %} {% if (loop.index0==0) and (match.date.start|date("d/m")!="01/01") %} {% elseif ((loop.index0!=0) and ((match.date.start|date("y-W")=="now"|date("y-W"))) and (resultat[loop.index0-1].date.start|date("y-W")!=match.date.start|date("y-W")))%} {% elseif ((loop.index0!=0) and (resultat[loop.index0-1].date.start|date("y-W")!=match.date.start|date("y-W")) and (match.date.start|date("d/m")!="01/01"))%}
{% endif %} {% if (loop.index0==0) %} {% endif %} {% if ((loop.index0!=0) and (resultat[loop.index0-1].date.start|date("d")!=match.date.start|date("d"))) %} {% endif %} {% if ((resultat|length!=loop.index0+1) and (resultat[loop.index0+1].date.start|date("y-W")!=match.date.start|date("y-W")) and (resultat[loop.index0+1].date.start|date("d/m")!="01/01")) %} {% endif %} {% if (resultat|length==loop.index0+1) %} {% endif %} {% endfor %}
{% endblock %}