From 220746bf9ba8775228f1d1bd7f2e6818df8f686d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 3 Sep 2012 16:56:52 +0200 Subject: [PATCH] =?utf8?q?Paginaten=20f=C3=BCr=20die=20BackgroundJob-Contr?= =?utf8?q?oller-List-View?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/BackgroundJob.pm | 3 +++ SL/DB/Manager/BackgroundJob.pm | 1 + templates/webpages/background_job/list.html | 2 ++ 3 files changed, 6 insertions(+) diff --git a/SL/Controller/BackgroundJob.pm b/SL/Controller/BackgroundJob.pm index dc97e1861..f80f57a1c 100644 --- a/SL/Controller/BackgroundJob.pm +++ b/SL/Controller/BackgroundJob.pm @@ -5,6 +5,7 @@ use strict; use parent qw(SL::Controller::Base); use SL::Controller::Helper::GetModels; +use SL::Controller::Helper::Paginated; use SL::Controller::Helper::Sorted; use SL::DB::BackgroundJob; use SL::Helper::Flash; @@ -20,6 +21,8 @@ __PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('check_task_server'); __PACKAGE__->run_before('load_background_job', only => [ qw(edit update destroy execute) ]); +__PACKAGE__->make_paginated(ONLY => [ qw(list) ]); + __PACKAGE__->make_sorted( ONLY => [ qw(list) ], diff --git a/SL/DB/Manager/BackgroundJob.pm b/SL/DB/Manager/BackgroundJob.pm index 1bb89ee7d..6212f9416 100644 --- a/SL/DB/Manager/BackgroundJob.pm +++ b/SL/DB/Manager/BackgroundJob.pm @@ -5,6 +5,7 @@ use strict; use SL::DB::Helper::Manager; use base qw(SL::DB::Helper::Manager); +use SL::DB::Helper::Paginated; use SL::DB::Helper::Sorted; sub object_class { 'SL::DB::BackgroundJob' } diff --git a/templates/webpages/background_job/list.html b/templates/webpages/background_job/list.html index 060c35d43..7d480472a 100644 --- a/templates/webpages/background_job/list.html +++ b/templates/webpages/background_job/list.html @@ -64,6 +64,8 @@ [%- END %] + [% L.paginate_controls %] +

-- 2.20.1