Skip to content

Commit

Permalink
Allow a per_page parameter
Browse files Browse the repository at this point in the history
Bumps #368
  • Loading branch information
lomky committed Jan 3, 2018
1 parent d89196f commit 4998449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Tuba/Controller.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ sub page {
sub per_page {
my $c = shift;
return undef if $c->param('all');
return $c->param('per_page') if $c->param('per_page');
return 24 if $c->param('thumbs');
return 20;
}
Expand Down

0 comments on commit 4998449

Please sign in to comment.