templates/fiche/_includes/etablissements-proches-client.html.twig line 1

Open in your IDE?
  1. {% if etablissementsProches|length %}
  2.     {% set quoi = quoi ? slugify.revealQuoi(quoi) %}
  3.     <div class="estabs-proches-client">
  4.         <h3>Autres établissements à proximité</h3>
  5.         <div class="items container">
  6.             {% for proche in etablissementsProches %}
  7.                 {% set urlFiche = pathBuilder.buildFiche(proche) %}
  8.                 <div class="item">
  9.                     <div class="inner" data-href="{{ urlFiche }}">
  10.                         {% set distance = etablissement | etabDistance(proche) %}
  11.                         {% if distance is not empty %}
  12.                             <span class="distance">à {{ distance }}</span>
  13.                         {% endif %}
  14.                         <a href="{{ urlFiche }}" class="title">
  15.                             {{ proche.denomination | u.truncate(60, '…', true) }}
  16.                         </a>
  17.                         {% if proche.ville %}
  18.                             <p class="city">
  19.                                 {{ proche.ville | lieuLibelle }}
  20.                             </p>
  21.                         {% endif %}
  22.                     </div>
  23.                 </div>
  24.             {% endfor %}
  25.         </div>
  26.     </div>
  27. {% endif %}