backend: rename gallery_nav_pager -> nav_pager

This commit is contained in:
Lucas 2023-02-19 11:27:45 +00:00
parent 5b8cbd37e5
commit f2ee7e3db8

View File

@ -21,7 +21,7 @@ sub http_tiny ()
); );
} }
sub gallery_nav_pager ($$) sub nav_pager ($$)
{ {
my ($p, $uri) = @_; my ($p, $uri) = @_;
@ -67,7 +67,7 @@ get "/" => sub {
template "gallery" => { template "gallery" => {
title => "PoorBooru", title => "PoorBooru",
media => \@media, media => \@media,
pager => gallery_nav_pager($data->{pager}, "/"), pager => nav_pager($data->{pager}, "/"),
}; };
}; };
@ -90,7 +90,7 @@ get "/tags" => sub {
template "tags" => { template "tags" => {
title => "Tags", title => "Tags",
tags => \@tags, tags => \@tags,
pager => gallery_nav_pager($data->{pager}, "/tags"), pager => nav_pager($data->{pager}, "/tags"),
}; };
}; };