<div class="col-md-6 col-lg-4">
<!-- Card -->
<div class="card border-light mb-4 animate-up-5" style="min-height: 33em">
<a href="{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}" class="position-relative">
{%if bfchallengeedition.challenge.description.image1 != null%}
<img src="{{ vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File') }}" alt="image" class="card-img-top p-2 rounded-xl" />
{%else%}
<img src="{{ asset('assets/img/cards-3662554_1920.jpg') }}" alt="image" class="card-img-top p-2 rounded-xl" />
{%endif%}
</a>
<div class="card-body">
<div>
<a href="{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}">
<h5 class="font-weight-normal">{{bfchallengeedition.name}}</h5>
</a>
</div>
{%if bfchallengeedition.description.website != null%}
<div class="post-meta">
<span class="small lh-120">
<a href="{{bfchallengeedition.description.website}}" target="_blank" class="font-weight-bold primary mb-0 mr-0">
<i class="fas fa-globe mr-2"></i>{{bfchallengeedition.description.website}}
</a>
</span>
</div>
{%endif%}
{%if bfchallengeedition.description.poster != null%}
<div>
<a href="{{ vich_uploader_asset(bfchallengeedition.description, 'posterFile') }}" target="_blank" class="font-weight-bold primary mb-0 mr-0 small lh-120">
<i class="far fa-file mr-2"></i>Affiche
</a>
</div>
{%endif%}
{%if bfchallengeedition.description.ranking != null%}
<div>
<a href="{{ vich_uploader_asset(bfchallengeedition.description, 'rankingFile') }}" target="_blank" class="font-weight-bold primary mb-0 mr-0 mb-0 mr-1 small lh-120">
<i class="far fa-file mr-2"></i>Classement
</a>
</div>
{%endif%}
<div class="post-meta">
<span class="small lh-120">{{bfchallengeedition.description.longdescription|nl2br}}</span>
</div>
</div>
<div class="card-footer bg-soft border-top">
<div class="d-flex justify-content-between">
<div class="col font-small">
<span class="text-muted font-small font-weight-bold d-block mb-2">
Les Festivals et Tournois
</span>
{%for bfedition in bfchallengeedition.editions%}
{{bfedition.festival.name}} - {{bfedition.name}} <br />
{%endfor%}
</div>
</div>
</div>
</div>
<!-- End of Card -->
</div>