{% set suffix = currentPage == 1 ? '' : '_with_page' %}
{% set title = ('company_list' ~ suffix ~ '.title')|trans({'%page%': currentPage}) %}
{% set description = ('company_list' ~ suffix ~ '.description')|trans({'%page%': currentPage}) %}
{% set keywords = ('company_list' ~ suffix ~ '.keywords')|trans({'%page%': currentPage}) %}
{% extends 'company/base_list.html.twig' %}
{% block items_description %}
<p>{{ 'company_list.list'|trans|raw }}</p>
{% endblock items_description %}
{% block pagination %}
<div class="toolbar-bottom-container">
<nav class="pagination-container">
{% if currentPage > 1 %}
<a href="{{ path('company_list', { page: currentPage - 1 }) }}" class="p-i-previous"></a>
{% else %}
<span class="p-i-previous p-i-disabled"></span>
{% endif %}
<span class="pagination-pages">
{% for p in pagination %}
{% if p == currentPage %}
<span class="pagination-item p-i p-i-disabled">{{ p }}</span>
{% elseif p == '...' %}
<span class="pagination-item p-i">…</span>
{% else %}
<a href="{{ path('company_list', { page: p }) }}" class="pagination-item p-i">
{{ p }}
</a>
{% endif %}
{% endfor %}
</span>
{% if currentPage < pagination|last %}
<a href="{{ path('company_list', { page: currentPage + 1 }) }}" class="p-i-next"></a>
{% else %}
<span class="p-i-next p-i-disabled"></span>
{% endif %}
</nav>
</div>
{% endblock pagination %}