{% extends 'base.html.twig' %}
{% set activeMenu = "infos-pratiques" %}
{% set titreSuffix = "(page " ~ pageNb ~ "/" ~ (structures.getTotalItemCount / pageLimit)|round ~ ")" %}
{% if title is defined and title is not null %}
{% set titre = title %}
{% else %}
{% set titre = "Toutes les structures " %}
{% endif %}
{% block title %}{{ titre ~ " " ~ titreSuffix }}{% endblock %}
{% block body %}
<h1>{{ (titre ~ " <small class=\"text-muted\">" ~ titreSuffix ~ "</small>")|raw }}</h1>
<ul class="list-unstyled">
{% for structure in structures %}
<li class="une">
<span class="date">{{ structure.createdAt|date("d/m/Y") }}<span> <a href="{{ path('showStructureBySlug', {slug:structure.slug}) }}">{{ structure.title }}</a>
</li>
{% endfor %}
</ul>
<div class="pagination">
{{ knp_pagination_render(structures) }}
</div>
{% endblock %}