templates/pagination/pagination.html.twig line 1
{# tailwindcss Sliding pagination control implementation #}{% if pageCount > 1 %}<div class="inline-block"><div class="flex items-center w-auto gap-2">{# {% if first is defined and current != first %}<span role="button" class="border border-neutral-200 text-neutral rounded p-4 inline-flex items-center justify-center"><a href="{{ path(route, query|merge({(pageParameterName): first})) }}"><<</a></span>{% endif %} #}{% if previous is defined %}<a class="border border-neutral-200 text-neutral text-base rounded p-2 w-12 h-12 inline-flex items-center justify-center hover:border-brand hover:font-medium" rel="prev" href="{{ path(route, query|merge({(pageParameterName): previous})) }}"><</a>{% endif %}{% for page in pagesInRange %}{% if page != current %}<ahref="{{ path(route, query|merge({(pageParameterName): page})) }}"class="border border-neutral-200 text-neutral text-base rounded p-2 w-12 h-12 inline-flex items-center justify-center hover:border-brand hover:font-medium">{{ page }}</a>{% else %}<spanclass="bg-brand font-medium border border-brand text-white text-base rounded p-2 w-12 h-12 inline-flex items-center justify-center">{{ page }}</span>{% endif %}{% endfor %}{% if next is defined %}<a class="border border-neutral-200 text-neutral text-base rounded p-2 w-12 h-12 inline-flex items-center justify-center hover:border-brand hover:font-medium" rel="next" href="{{ path(route, query|merge({(pageParameterName): next})) }}">></a>{% endif %}{# {% if last is defined and current != last %}<span role="button" class="border border-neutral-200 text-neutral rounded p-4 inline-flex items-center justify-center"><a href="{{ path(route, query|merge({(pageParameterName): last})) }}">>></a></span>{% endif %} #}</div></div>{% endif %}