{% load brickwork_icons i18n %} {% comment %} Pagination controls for a Django Page object. Renders nothing when there is only one page (STA-014: a one-page result shows no controls). Uses logical prev/next (chevron-back/-forward flip under RTL, ICO-014). Preserves the current sort and filter params so they survive a page change. #41: when ``request`` is in context (the view/pattern path) the built-in ``{% querystring %}`` tag overrides only ``page`` and keeps every other current GET param (sort, filters), so the pattern owns the sort/pagination split with no consumer-supplied ``querystring``. Standalone renders with no request fall back to the documented ``querystring`` var (the current GET minus ``page``), so the component's request-free render contract is unchanged. Required context: page_obj (a django.core.paginator.Page). Optional: querystring (the request-free fallback: the current GET params minus 'page'). {% endcomment %} {% if page_obj.paginator.num_pages > 1 %} {% endif %}