{% set list_other_url_clean = '' %}
{% if list.other_url_clean is defined %}
{% set list_other_url_clean = list.other_url_clean %}
{% endif %}
{% set playlist_other_url_clean = '' %}
{% if playlist.other_url_clean is defined %}
{% set playlist_other_url_clean = playlist.other_url_clean %}
{% endif %}
<div class="tc-block-header">
<span class="tc-textwrap-auteur">
{% if playlist.nameview is defined and playlist.nameview %}
{% if list_other_url_clean is defined and list_other_url_clean is not empty %}
<a class="tc-text-overflow tc-titre" href="{{ list_other_url_clean }}/video/{{ playlist.url_clean }}">{{ playlist.nameview }}</a>
{% else %}
<a class="tc-text-overflow tc-titre" href="{{ playlist_other_url_clean }}/video/{{ playlist.urlClean }}">{{ playlist.nameview }}</a>
{% endif %}
{% else %}
{% for idtext,text in playlist.idtext %}
{% if playlist_other_url_clean is defined and playlist_other_url_clean %}
<a class="tc-titre tc-text-overflow" href="{{ list_other_url_clean }}/video/{{ playlist_other_url_clean }}">{{ playlist.title }}</a>
{% else %}
<a class="tc-titre tc-text-overflow" href="playlist/{{ playlist.urlClean }}">{{ playlist.title }}</a>
{% endif %}
{% if text.nopunct is not defined or (text.nopunct is defined and not text.nopunct) %}, {% endif %}
{% endfor %}
{% endif %}
</span>
{% if playlist.authors is defined and playlist.authors %}
<span class="tc-text-label">
présenté par
{% for k,v in playlist.authors %}
<span class="tc-textwrap-auteur"><a href="/biographies/{{ v.url_clean }}">{{ v.firstname }} {{ v.lastname }}</a></span>
{% endfor %}
</span>
{% endif %}
</div>
<div class="tc-block-body">
{% if list_other_url_clean is defined and list_other_url_clean %}
<figure class="tc-video-16_9 tc-img-affiche-video">
<a href="{{ list_other_url_clean }}/video/{{ playlist.url_clean }}">
<img style="width:100%" src="{{ playlist.image_media }}" alt="Image de la vidéo pour '{{ list.nameview }}'" />
</a>
</figure>
{% else %}
{% if playlist.multimedias is defined and playlist.multimedias %}
<figure class="tc-video-16_9 tc-img-affiche-video">
{% for idimages,images in playlist.multimedias %}
<a href="{{ playlist_other_url_clean }}/video/{{ playlist.urlClean }}">
<img style="width:100%" src="{{ images.image_media }}" alt="Image de la vidéo pour '{{ playlist.nameview }}'" />
</a>
{% endfor %}
</figure>
{% endif %}
{% endif %}
{% if playlist.nb_aides is defined and playlist.nb_aides %}
{% if playlist.nb_aides_px is defined and playlist.nb_aides_px %}
<div class="tc-point-stats" style="width: {{ playlist.nb_aides_px }}px"></div>
{% else %}
<p class="tc-textwrap-lieuville">
{{ playlist.nb_aides }} aides
</p>
{% endif %}
{% endif %}
</div>