{% for spectacle in critique.spectacles %}
<div class="tc-block-header tc-spectacles-tpl-b">
{% set url_clean_more = '' %}
{% if spectacle.url_clean_more is defined %}
{% set url_clean_more = spectacle.url_clean_more %}
{% endif %}
<span class="tc-textwrap-title"><a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" class="tc-titre tc-text-overflow">{{ spectacle.title|raw }}</a></span>
</div>
<div class="tc-block-body">
{% if critique.vignette is defined and critique.vignette %}
<figure class="tc-media-middle">
<a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" title="Voir la fiche de ce spectacle">
{% if critique.show_large is defined and critique.show_large %}
<img src="{{ imgdirupload }}{{ critique.vignette_large }}" alt="" />
{% else %}
<img src="{{ imgdirupload }}{{ critique.vignette }}" alt="" />
{% endif %}
</a>
<figcaption class="show-for-sr">
Image de {{ spectacle.title }}
</figcaption>
</figure>
{% else %}
<figure class="tc-media-thumbnail">
<a href="/spectacles/{{ spectacle.url_clean }}/{{ url_clean_more }}" title="Voir la fiche de ce spectacle">
<img src="{{ spectacle.vignette_affiche }}" class="tc-border-neutral" alt="{{ spectacle.title }}" />
</a>
<figcaption class="show-for-sr">
Image de {{ spectacle.title }}
</figcaption>
</figure>
{% endif %}
<div class="tc-block-body-text tc-critiques-tpl- tc-chapeau" style="padding-left:1.5em;">
{% if critique.writer_group is defined and critique.writer_group %}
<p>
{% if critique.writer_group_url is defined and critique.writer_group_url %}
<a href="{{ critique.writer_group_url }}">{{ critique.writer_group }}</a>
{% else %}
{{ critique.writer_group }}
{% endif %}
</p>
{% endif %}
{% if critique.date_article_lng is defined and critique.date_article_lng %}
<p class="tc-text-label-inline">{{ critique.date_article_lng }}</p>
{% endif %}
{% if spectacle.coprod is defined and spectacle.coprod %}
<p class="tc-textwrap-date">
<span class="tc-text-label-inline">Coproduction</span>
{% for contact in spectacle.coprod %}
<a href="/contacts/{{ contact.url_clean }}/">{{ contact.organisation }}</a>{% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
{% endfor %}
</p>
{% endif %}
<p class="tc-textwrap-lieuville-calendar">
<a href="/spectacles/{{ spectacle.url_clean }}/critiques/" class="tc-titre" rel="article{{ critique.idcontent }}">
{{ critique.title }}
</a>
</p>
{% if critique.writer is defined and critique.writer %}
<p class="tc-textwrap-auteur"><span class="tc-text-label-inline">Par</span> {{ critique.writer }}</p>
{% endif %}
{% if critique.deck is defined and critique.deck %}
<div class="tc-textwrap-description">
<p>{{ critique.deck|raw }}</p>
</div>
<p>
<a
{% if critique.writer_group_url is defined and critique.writer_group_url %}
href="{{ critique.writer_group_url }}" target="__blank">
{% endif %}
{% if critique.link is defined and critique.link %}
href="{{ critique.link }}" target="__blank">
{% endif %}
Lire l'article sur {{ critique.writer_group }}
</a>
</p>
{% endif %}
</div>
</div>
<div class="tc-block-footer">
{% if critique.spectacle.count_critiques is defined and critique.spectacle.count_critiques %}
<p class="tc-textwrap-lieuville">
<a href="/spectacles/{{ spectacle.url_clean }}/critiques/">
Toutes les critiques ({{ critique.spectacle.count_critiques }})
</a>
</p>
{% endif %}
</div>
{% endfor %}