From 1229bb6a838e96eb52be7aa1cac8d692746bc783 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 17 Aug 2023 11:36:55 +0200 Subject: convert to bulma css framework --- lib/JWebmail/Plugin/Paginate.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/JWebmail/Plugin') 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}, ); } -- cgit v1.2.3