<%doc> =head2 pager This controls the pager display at the bottom (by default) of the list and search views. It expects a C template argument which responds to the L interface. =cut <%args> $request $config $base $pager $classmetadata %if ( $pager && $pager->{ first_page } != $pager->{ last_page } ) {

Pages: % foreach my $num ( $pager->{ first_page } .. $pager->{ last_page } ) { % if ( $num == $pager->{ current_page } ) { [<% $num %>] % } else { <& mplink, base => $base, config => $config, table => $classmetadata->{table}, request => $request, command => 'list', additional => "?page=$num", label => "[$num]", &> % } # / if/else % } # / foreach % } # / if