summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Plugin
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-08-17 11:36:55 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-08-17 11:36:55 +0200
commit1229bb6a838e96eb52be7aa1cac8d692746bc783 (patch)
tree20a337622a62e43f9ac4baf6d609de5d3891cb84 /lib/JWebmail/Plugin
parent97d10a54426d2df2de1c765948989dfc88a316eb (diff)
convert to bulma css framework
Diffstat (limited to 'lib/JWebmail/Plugin')
-rw-r--r--lib/JWebmail/Plugin/Paginate.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/JWebmail/Plugin/Paginate.pm b/lib/JWebmail/Plugin/Paginate.pm
index 9b39617..b4564b7 100644
--- a/lib/JWebmail/Plugin/Paginate.pm
+++ b/lib/JWebmail/Plugin/Paginate.pm
@@ -79,11 +79,11 @@ sub paginate {
}
sub make_link {
- my ($c, $txt, $to) = @_;
+ my ($c, $txt, $to, %args) = @_;
return $c->link_to(
$txt => $c->url_with->query({start => $c->stash('pgn')->{$to}[0]}),
- class => ($c->param('start')//0) == $c->stash('pgn')->{$to}[0] ? 'disabled' : '',
+ class => ($c->param('start')//0) == $c->stash('pgn')->{$to}[0] ? join(' ', $args{class}, $args{class_disabled}) : $args{class},
);
}