{% if paginator_filter.paginator.num_pages != 1 and paginator_filter|length > 0 %}
  <span>
    {% if paginator_filter.has_previous %}
      <a href="{{ paginator_filter.paginator.url_first_page }}" role="button">« premier</a>
      <a href="{{ paginator_filter.url_previous_page }}" role="button">précédent</a>
    {% endif %}
    <span>Page {{ paginator_filter.number }}
      {% if not nomax %}sur {{ paginator_filter.paginator.num_pages }}{% endif %}
    </span>
    {% if paginator_filter.has_next %}
      <a href="{{ paginator_filter.url_next_page }}" role="button">suivant</a>
      {% if paginator_filter.count < 9999999998 %}
        <a href="{{ paginator_filter.paginator.url_last_page }}" role="button">dernier »</a>
      {% endif %}
    {% endif %}
  </span>
{% endif %}
