{% macro govukPagination(params) %} {% from "govuk_frontend_jinja/macros/attributes.html" import govukAttributes -%} {% set blockLevel = 'items' not in params and (params.next or params.previous) -%} {%- set arrowPrevious -%} {%- endset -%} {%- set arrowNext -%} {%- endset -%} {%- macro _arrowLink(link, type = "next") %} {% set arrowType = arrowPrevious if type == "prev" else arrowNext %}
{% if blockLevel or type == "prev" %} {{- arrowType | safe | indent(4, true) }} {% endif %} {{ caller() | safe | trim }} {% if link.labelText and blockLevel %} : {{ link.labelText }} {% endif %} {% if not blockLevel and type == "next" %} {{- arrowType | safe | indent(4, true) }} {% endif %}
{% endmacro -%} {%- macro _pageItem(item) -%}
  • {% if item.ellipsis %} ⋯ {% else %} {{ item.number }} {% endif %}
  • {%- endmacro -%} {% endmacro %}