templates/structure/list.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% set activeMenu = "infos-pratiques" %}
  3. {% set titreSuffix = "(page " ~ pageNb ~ "/" ~ (structures.getTotalItemCount / pageLimit)|round ~ ")" %}
  4. {% if title is defined and title is not null %}
  5.     {% set titre = title %}
  6. {% else %}
  7.     {% set titre = "Toutes les structures " %}
  8. {% endif %}
  9. {% block title %}{{ titre  ~ " " ~ titreSuffix }}{% endblock %}
  10. {% block body %}
  11.     <h1>{{ (titre ~ " <small class=\"text-muted\">" ~ titreSuffix ~ "</small>")|raw }}</h1>
  12.     <ul class="list-unstyled">
  13.         {% for structure in structures %}
  14.             <li class="une">
  15.                 <span class="date">{{ structure.createdAt|date("d/m/Y") }}<span> <a href="{{ path('showStructureBySlug', {slug:structure.slug}) }}">{{ structure.title }}</a>
  16.             </li>
  17.         {% endfor %}
  18.     </ul>
  19.     
  20.     <div class="pagination">
  21.         {{ knp_pagination_render(structures) }}
  22.     </div>
  23. {% endblock %}