{% apply spaceless %} {% if lastPage > 1 %} {# the number of first and last pages to be displayed #} {% set extremePagesLimit = 2 %} {# the number of pages that are displayed around the active page #} {% set nearbyPagesLimit = 1 %} {% if currentFilters is not defined %}{% set currentFilters = app.request.attributes.get('_route_params')|merge(app.request.query.all) %}{% endif %} {% if paginationPath is not defined %}{% set paginationPath = app.request.attributes.get('_route') %}{% endif %} {% if showAlwaysFirstAndLast is not defined %}{% set showAlwaysFirstAndLast = true %}{% endif %}