{% import "macros/icons.html" as icons %} {% macro pagination(count, query_parameters) %} {% set skip = query_parameters.skip %} {% set limit = query_parameters.limit %} {% set page = skip // limit + 1 %} {% set max_page = count / limit | round(method="ceil") %} {% set first_index = (page - 1) * limit + 1 %} {% set last_index = page * limit %}
Showing {{ first_index }} to {{ last_index }} of {{ count }} results
{% endmacro %}