diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-02-27 15:30:42 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-02-27 15:30:42 +0100 |
commit | d32477f82bca6042ddccd6bbce1cc804927a89a9 (patch) | |
tree | 0f5d399ff552407d55b407b13f9bc2988c97bfa3 /templates/headers/_pagination2.html.ep | |
parent | eddd009cd885093cb79e085c3499bdd52882e8b8 (diff) |
Separate name space for pagination
Diffstat (limited to 'templates/headers/_pagination2.html.ep')
-rw-r--r-- | templates/headers/_pagination2.html.ep | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/headers/_pagination2.html.ep b/templates/headers/_pagination2.html.ep index 63e8f63..eef2abe 100644 --- a/templates/headers/_pagination2.html.ep +++ b/templates/headers/_pagination2.html.ep @@ -1,12 +1,12 @@ <div> %= form_for '' => (class => 'pure-form') => begin - <a href="<%= url_with->query({start => $first_page->[0]}) %>"><img src="/first.gif" alt="<%= l('first') . ' ' . l 'page' %>"></a> - <a href="<%= url_with->query({start => $prev_page->[0]}) %>"><img src="/left.gif" alt="<%= l('previous') . ' ' . l 'page' %>"></a> + <a href="<%= url_with->query({start => $pgn->{first_page}[0]}) %>"><img src="/first.gif" alt="<%= l('first') . ' ' . l 'page' %>"></a> + <a href="<%= url_with->query({start => $pgn->{prev_page}[0]}) %>"><img src="/left.gif" alt="<%= l('previous') . ' ' . l 'page' %>"></a> [ %= label_for custompage => ucfirst l 'page' - %= number_field start => (id => 'custompage') => (size => 3) => (placeholder => $current_page+1) + %= number_field start => (id => 'custompage') => (size => 3) => (placeholder => $pgn->{current_page}+1) %= l 'of' - %= $total_pages + %= $pgn->{total_pages} ] % my $h = $c->req->query_params->to_hash; @@ -16,7 +16,7 @@ % } % } - <a href="<%= url_with->query({start => $next_page->[0]}) %>"><img src="/right.gif" alt="<%= l('next') . ' ' . l 'page' %>"></a> - <a href="<%= url_with->query({start => $last_page->[0]}) %>"><img src="/last.gif" alt="<%= l('last') . ' ' . l('page') %>"></a> + <a href="<%= url_with->query({start => $pgn->{next_page}[0]}) %>"><img src="/right.gif" alt="<%= l('next') . ' ' . l 'page' %>"></a> + <a href="<%= url_with->query({start => $pgn->{last_page}[0]}) %>"><img src="/last.gif" alt="<%= l('last') . ' ' . l('page') %>"></a> % end </div> |