{% from "macros/nswdesignsystem/_tabs_link.html" import link with context %}
{% macro pagination(pager, padding=3, args={}) %}
{% set current = pager.page %}
{% set total = pager.last_page %}
{% set is_first = current <= 1 %}
{% set is_last = current >= total %}
{% set url = pager._url_generator %}
{% set first_bound = [2, current - padding]|max %}
{% set last_bound = [total - 1, current + padding]|min %}
{% if total > 1 %}
{% endif %}
{% endmacro %}