{% set currentPage = 2 %} {% set bodyClasses = 'page' %} {% extends "../layout/page.twig" %} {% block customContent %} {% set tenders_test = [ ["open", "Aperto", "1706270400"], ["open", "Aperto", ["1706097600", "1706270400"]], ["closed", "Chiuso", "1706270400"], ["completed", "Esito disponibile", "1706270400"], ["archived", "Archiviato", "1706270400"], ["expired", "In fase di assegnazione", "1706270400"] ] %} {% for tender in tenders_test %} <div class="block-container spacing-2"> <div> <div class="tender-date tender-date--{{tender[0]}}"> {% if tender[0] == 'expired' or tender[0] == 'archived' or tender[0] == 'completed' or tender[0] == 'closed' %}Scaduto{% endif %} {% if tender[2] is iterable %} <div> <span>Prorogato al {{tender[2][1]|date('d.m.Y, H:s')}}</span> <span>Scadenza {{tender[2][0]|date('d.m.Y, H:s')}}</span> </div> {% else %} <span> {% if tender[0] == 'expired' or tender[0] == 'archived' or tender[0] == 'completed' or tender[0] == 'closed' %}Scadenza{% endif %} {{tender[2]|date('d.m.Y, H:s')}} </span> {% endif %} </div> <span class="status status--{{tender[0]}}"><span></span>{{tender[1]}}</span> </div> </div> {% endfor %} {% endblock %}