PoorBooru/templates/_pager.html.ep

16 lines
621 B
Plaintext

% if (my $pager = stash("pager")) {
<footer>
<nav class="text-center leading-loose">
<%= 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} %>
<span><%= $pager->{current_page} %></span>
<%= 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} %>
</nav>
</footer>
% }