veilid-dot-com/themes/veilid/layouts/partials/paginator.html.twig
2023-08-15 15:25:21 -04:00

17 lines
640 B
Twig

{%- if page.paginator ~%}
{%- set links = page.paginator.links ~%}
<nav>
<ul>
{%- if links.prev is defined ~%}
<li><a href="{{ url(links.prev) }}">{% trans %}Previous{% endtrans %}</a></li>
{%- else ~%}
<li>{% trans %}Previous{% endtrans %}</li>
{%- endif ~%}
{%- if links.next is defined ~%}
<li><a href="{{ url(links.next) }}">{% trans %}Next{% endtrans %}</a></li>
{%- else ~%}
<li>{% trans %}Next{% endtrans %}</li>
{%- endif ~%}
</ul>
</nav>
{%- endif ~%}