12 lines
459 B
Plaintext
12 lines
459 B
Plaintext
% if (my $pager = stash("pager")) {
|
|
<footer>
|
|
<nav class="text-center">
|
|
<%= link_to "<<" => $pager->{first_page} if exists $pager->{first_page} %>
|
|
<%= link_to "<" => $pager->{previous_page} if exists $pager->{previous_page} %>
|
|
<span><%= $pager->{current_page} %></span>
|
|
<%= link_to ">" => $pager->{next_page} if exists $pager->{next_page} %>
|
|
<%= link_to ">>" => $pager->{last_page} if exists $pager->{last_page} %>
|
|
</nav>
|
|
</footer>
|
|
% }
|