{# {% set jpo = etablissement.jPOs.first %} #}
{% set actualite = etablissement.actualites.first %}
{% set offreEmploi = etablissement.offresEmploiValides.first %}
{% if actualite or offreEmploi or jpo %}
<div class="block-info mb-2">
<h2 class="titre-haut-1">En ce moment : </h2>
<div class="fiche-infos">
{# ----- JPO ------------------------------------------- #}
{% if jpo %}
<div class="jpo">
<a class="title" href="{{ path('jpo-etab', {'id': jpo.id}) }}"><strong>Journée portes ouvertes </strong> du {{jpo.date | format_date(pattern='EEEE dd MMMM Y')}}</a>
</div>
{% endif %}
{# ----- Actualité -------------------------------------------------- #}
{% if actualite %}
<div class="actus">
<a class="title" href="#actualites"><strong>Actualités :</strong> {{ actualite.titre | u.truncate(35, "...", false) }}</a>
</div>
{% endif %}
{# ----- Offre d'emploi --------------------------------------------- #}
{% if offreEmploi %}
<div class="jobs">
<a class="title" href="{{ path('offre-emploi', {'id': offreEmploi.id}) }}"><strong>Offres d'emploi : </strong> {{ offreEmploi.libelle | u.truncate(35, "...", false) }}</a>
</div>
{% endif %}
</div>
</div>
{% endif %}