templates/questionAnswer/show.html.twig line 26

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ questionAnswer.title|replace({ '<br>':'' }) }}{% endblock %}
  3. {# {% block stylesheets %}
  4.     {{ parent() }}
  5. {% endblock %} #}
  6. {% block body %}
  7.     <div class="titre">
  8.         <h1>{{ questionAnswer.title|raw }}</h1>
  9.     </div>
  10.     {% if is_granted('ROLE_EDITOR') %}
  11.         {% set url = ea_url()
  12.             .setController('App\\Controller\\Admin\\QuestionAnswerCrudController')
  13.             .setAction('edit')
  14.             .setEntityId(questionAnswer.id) %}
  15.         <p><a class="adm-link" href="{{ url }}" target="_blank">administrer la question-réponse</a></p>
  16.     {% endif %}
  17.     {# <div class="date">
  18.         {{questionAnswer.createdAt|date("d/m/Y")}}
  19.     </div> #}
  20.     {% include 'media/postMedias.html.twig' with {'medias': questionAnswer.medias, 'mediasType': 'slides' } %}
  21.         
  22.     {% if questionAnswer.chapo|length > 5 %}
  23.         <div class="chapo">
  24.             {{ questionAnswer.chapo|raw }}
  25.         </div>
  26.     {% endif %}
  27.     {% set hideThumbnails = false %}{% for media in questionAnswer.medias|filter(media => media.role == "slide") %}{% set hideThumbnails = true %}{% endfor %}{# car icig ne veut pas de thumbnail s'il y a des slides #}
  28.     {% if not hideThumbnails %}{% include 'media/postMedias.html.twig' with {'medias': questionAnswer.medias, 'mediasType': 'thumbnails' } %}{% endif %}
  29.     
  30.     <div class="contenu">
  31.         {{ questionAnswer.content|raw }}
  32.     </div>
  33.     {% include 'media/postMedias.html.twig' with {'medias': questionAnswer.medias, 'mediasType': 'documents' } %}
  34.     {# {{ render(controller('App\\Controller\\QuestionAnswerController:listSame', { 'id' : questionAnswer.id })) }} #}
  35.     {% include 'common/seealso.html.twig' with {'entity': questionAnswer } %}
  36.     <p>
  37.         Une erreur ? Un complément à ajouter ? <a href="{{ path('contact') }}"><strong>Signalez-le nous !</strong></a>
  38.     </p>
  39.     <p>
  40.         Vous souhaitez faire une autre recherche ? <a href="{{ path('themeList') }}">Faites une recherche par thème ou par mot-clé</a>
  41.     </p>
  42. {% endblock %}