templates/news/news_read.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block layout %}
  3.     <div>
  4.         <div class="row" style="display: block; max-width: 100%;">
  5.                 <h3 class="news_title" style="text-align: center">
  6.                     <strong>
  7.                         {{ news.title }}
  8.                     </strong>
  9.                 </h3>
  10.                 <div class="row" style="display: block;text-align: center;">
  11.                     <i style="color:gray;">{{ news.createdAt|date('d/m/Y') }}</i>
  12.                     <br>
  13.                     {% if news.listekeywords|length > 0 %}
  14.                         {% for data in news.listekeywords %}
  15.                             <a href="{{ path('keyword', {keyword: data.id}) }}">
  16.                                 <span class="badge badge-primary">
  17.                                     {{ data.keyword }}
  18.                                 </span>
  19.                             </a>
  20.                         {% endfor %}
  21.                     {% endif %}
  22.                 </div>
  23.             </div>
  24.     </div>
  25.     <div class="row">
  26.         <div class="col-lg-8 col-12">
  27.             {% if news.pdf is not null and news.pdf != '' %}
  28.                 <br />
  29.                 <a href="{{ '/news-pdf/'~ news.pdf }}" target="_blank">
  30.                     <button type="button" class="btn btn-primary">Voir le document joint</button>
  31.                 </a>
  32.             {% endif %}
  33.             <div class="row" style="padding:20px; margin:10px;border: 1px solid gray;border-radius:3px">
  34.                 <p style="text-align:justify">
  35.                     {{ news.content|raw }}
  36.                 </p>
  37.             </div>
  38.             <br>
  39.         </div>
  40.         {% if news.listelexique|length > 0 %}
  41.             <div class="col-lg-4 col-12">
  42.                 <div style="padding:20px; margin:10px;border: 1px solid gray;border-radius:3px">
  43.                     {% for data in news.listelexique %}
  44.                         <b>{{ data.word }} :</b> {{ data.definition|raw }}
  45.                     {% endfor %}
  46.                 </div>
  47.             </div>
  48.         {% endif %}
  49.     </div>
  50. {% endblock %}