templates/critiques/spectacles.html.twig line 1

Open in your IDE?
  1. {% extends 'critiques/critiques-header.inc.html.twig' %}
  2. {% block content %}
  3. {% include 'includes/navigation.inc.html.twig' %}
  4. <main class="tc-desktop-2_3 tc-phone-1_1">
  5.     <section class="tc-panel">
  6.         <div class="tc-panel-header">
  7.             <h2>Spectacles avec critiques</h2>
  8.             <h3>à l'affiche
  9.                 {% if typestructure is defined and typestructure is not empty %}
  10.                     dans les {{ typestructure.typestructure_pluriel }}
  11.                 {% endif %}
  12.                 {% if saison is defined and saison is not empty %}
  13.                 sur la saison {{ saison }}
  14.                 {% endif %}
  15.                 {% if year is defined and year is not empty %}
  16.                 en {{ year }}
  17.                 {% endif %}
  18.                 {% if days is defined and days is not empty %}
  19.                 dans les {{ days_name }}
  20.                 {% endif %}
  21.                 {% if datestart is defined and dateend is defined and datestart is not empty and dateend is not empty %}
  22.                 du {{ datestart|date('Y-m-d') }} au {{ dateend|date('Y-m-d') }}
  23.                 {% endif %}
  24.             </h3>
  25.         </div>
  26.         <div class="tc-panel-body">
  27.             {% if spectacles is defined and spectacles %}
  28.             <div class="tc-masonry-container">
  29.                 {% for idspectacle,spectacle in spectacles %}
  30.                 <div class="tc-spectacles-tpl-a tc-tablet-1_2 tc-block ">
  31.                     {% include 'spectacles/spectacle_titre.inc.html.twig' %}
  32.                 </div>
  33.                 {% endfor %}
  34.             </div>
  35.             {% else %}
  36.                 <div class="tc-block">
  37.                     <div class="tc-block-body">
  38.                         <p>Il n'y a pas de résultat correspondant à cette recherche</p>
  39.                     </div>
  40.                 </div>
  41.             {% endif %}
  42.         </div>
  43.         <div class="tc-panel-footer">
  44.             {% if pagination.spectacle is defined and pagination.spectacle %}
  45.             <p><span class="tc-text-number">
  46.             {% if pagination.totalItems is defined and pagination.totalItems %}
  47.                 {{ pagination.totalItems }}
  48.             {% else %}
  49.                 {{ pagination.total }}
  50.             {% endif %}
  51.             </span> spectacles
  52.                 {% if pagination.representation_spectacle is defined and pagination.representation_spectacle %}
  53.                 - {{ pagination.total_dates }} représentations
  54.                 {% endif %}
  55.                 {% if pagination.critique_spectacle is defined and pagination.critique_spectacle %}
  56.                 - {{ pagination.nb_total }} critiques
  57.                 {% endif %}
  58.             </p>
  59.             {% endif %}
  60.         </div>
  61.     </section>
  62. </main>
  63. {% endblock %}