<section id="sectionQuestionAnswers" class="question-answer col resultats resultats-recherche">
<h2>Des questions / réponses</h2>
{% if listWithThumbnails %}
{% import "common/listWithImages.html.twig" as listWithImages %}
<div class="row questionAnswers-list with-images">
{% for questionAnswer in questionAnswers %}
<div class="col-sm-6 col-md-4 col-lg-3 article with-image
{% if type is defined %}{{ type }}{% endif %}
">
<a style="display:block" href="{{ path('showQuestionAnswerBySlug', {slug:questionAnswer.slug}) }}">
<div class="post-medias">
{{ listWithImages.showOneImage(questionAnswer) }}
</div>
<p>
{# <span class="date">{{ questionAnswer.createdAt|date("d/m/Y") }}</span>
<span class="tags">{{ questionAnswer.tags|join(', ') }}</span>
<br/> #}
<span class="title">
{{ questionAnswer.title }}
{# {{ questionAnswer.title|raw|striptags|slice(0,30) }}
{% if questionAnswer.title|raw|striptags|length > 30 %}...{% endif %} #}
</span>
</p>
</a>
</div>
{% endfor %}
</div>
{% else %}
<ul class="questionAnswersList">
{% for key, questionAnswer in questionAnswers %}
<li>
<a href="{{ path('showQuestionAnswerBySlug', { 'slug':questionAnswer.slug }) }}">
{{ questionAnswer.title}} {% if is_granted('ROLE_EDITOR') %}(priorité : {{ questionAnswer.priority }}){% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</section>