{% extends 'templates.html.twig' %}
{% block headcontent %}
<section class="tc-header row">
<header class="tc-panel">
<h1 class="tc-panel-header">Vient de paraître</h1>
</header>
</section>
{% include 'includes/navigation.inc.html.twig' %}
{% endblock %}
{% block content %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<section class="tc-panel">
<div class="tc-panel-header">
<h2>
Les {{ nb_texts_total }} parutions
{% if mois is defined and mois %}
{{ mois }}
{% endif %}
<strong>
{% if year is defined and year is not empty %}
en {{ year }}
{% endif %}
{% if datestart is defined and datestart and dateend_string is defined and dateend_string %}
du {{ datestart|date('Y-m-d') }} au {{ dateend_string }}
{% endif %}
{% if genre.name is defined and genre.name %}
({{ genre.name }})
{% endif %}
</strong>
</h2>
</div>
<div class="tc-panel-body tc-masonry-container">
{% if texts is defined and texts %}
{% for idtext,text in texts %}
<div class="tc-block tc-tablet-1_2 tc-editions-tpl-a">
{% include '/editions/texte_titre.inc.html.twig' %}
</div>
{% endfor %}
{% else %}
<div>
Il n'y a pas de résultat pour cette recherche
</div>
{% endif %}
</div>
<div class="tc-panel-footer">
{% include '/includes/pagination.inc.html.twig' %}
</div>
</section>
</main>
{% endblock %}