{% set paginator = getPaginator(namespace) %} {% set show_current_page = show_current_page|default(true) %} {% if paginator.last_page != -1 %} {% set show_next_button = (paginator.current_page < paginator.last_page) ? '' : 'invisible' %} {% endif %} {% set show_prev_button = (paginator.current_page == 1) ? 'invisible' : '' %} {% if paginator.last_page > 1 %}
{% if show_current_page == true %} {{ paginator.current_page }} {% endif %}
{% endif %}