templates/_includes/last-establishment.html.twig line 1

Open in your IDE?
  1. {% set establishments = historique.getFiches() %}
  2. {% if establishments is not empty %}
  3.     <div class="nav-block last-establishment">
  4.         <p class="title">Mes dernières fiches consultées</p>
  5.         <ul {% if establishments | length > 4 %} class="slide" {% endif %}>
  6.             {% for etab in establishments %}
  7.                 <li>
  8.                     <a href="#" class="empty-link">
  9.                         <span data-href="{{ pathBuilder.buildFiche(etab) }}" class="empty-link"></span
  10.                         <figure>
  11.                             {% if etab.isClient and etab.logo is not empty %}
  12.                                 <img src="{{ vich_uploader_asset(etab.logo, 'logoFile') | imagine_filter('etab_liste_logo_history') }}" alt="{{ etab.denomination }}">
  13.                             {% else %}
  14.                                 <span class="no-logo"></span>
  15.                             {% endif %}
  16.                         </figure>
  17.                         <p>
  18.                             <strong>{{ etab.denomination | u.truncate(45, '…', true) }}</strong><br>
  19.                             {% if etab.codePostal is not empty %}
  20.                                 {{ etab.codePostal }}
  21.                             {% endif %}
  22.                             {% if etab.ville is not empty %}
  23.                                 {{ etab.ville.libelle }}
  24.                             {% endif %}
  25.                         </p>
  26.                     </a>
  27.                 </li>
  28.             {% endfor %}
  29.         </ul>
  30.         {% if establishments | length > 4 %}
  31.             <span id="last-estab-prev"></span>
  32.             <span id="last-estab-next"></span>
  33.         {% endif %}
  34.     </div>
  35. {% endif %}