2023-03-19 22:59:41 +01:00
|
|
|
% if (my $pager = stash("pager")) {
|
2023-03-17 20:58:12 +01:00
|
|
|
<footer>
|
|
|
|
<nav class="text-center">
|
2023-03-23 21:26:08 +01:00
|
|
|
<%= link_to "<<" => url_with->query({ page => $pager->{first_page} })
|
|
|
|
if exists $pager->{first_page} %>
|
|
|
|
<%= link_to "<" => url_with->query({ page => $pager->{previous_page} })
|
|
|
|
if exists $pager->{previous_page} %>
|
2023-03-17 20:58:12 +01:00
|
|
|
<span><%= $pager->{current_page} %></span>
|
2023-03-23 21:26:08 +01:00
|
|
|
<%= link_to ">" => url_with->query({ page => $pager->{next_page} })
|
|
|
|
if exists $pager->{next_page} %>
|
|
|
|
<%= link_to ">>" => url_with->query({ page => $pager->{last_page} })
|
|
|
|
if exists $pager->{last_page} %>
|
2023-03-17 20:58:12 +01:00
|
|
|
</nav>
|
|
|
|
</footer>
|
2023-03-19 22:59:41 +01:00
|
|
|
% }
|