From 07d65516a53475a8f40714da7b4d2f906cb62804 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 3 Sep 2012 16:54:32 +0200 Subject: [PATCH] =?utf8?q?Paginaten=20f=C3=BCr=20die=20BackgroundJobHistor?= =?utf8?q?y-Controller-List-View?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/BackgroundJobHistory.pm | 3 +++ SL/DB/Manager/BackgroundJobHistory.pm | 1 + templates/webpages/background_job_history/list.html | 2 ++ 3 files changed, 6 insertions(+) diff --git a/SL/Controller/BackgroundJobHistory.pm b/SL/Controller/BackgroundJobHistory.pm index ec9ebfe5a..5992dc00a 100644 --- a/SL/Controller/BackgroundJobHistory.pm +++ b/SL/Controller/BackgroundJobHistory.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::BackgroundJobHistory; use SL::Helper::Flash; @@ -20,6 +21,8 @@ __PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('add_stylesheet'); __PACKAGE__->run_before('check_task_server'); +__PACKAGE__->make_paginated(ONLY => [ qw(list) ]); + __PACKAGE__->make_sorted( ONLY => [ qw(list) ], diff --git a/SL/DB/Manager/BackgroundJobHistory.pm b/SL/DB/Manager/BackgroundJobHistory.pm index 132188f3c..4f1ddd305 100644 --- a/SL/DB/Manager/BackgroundJobHistory.pm +++ b/SL/DB/Manager/BackgroundJobHistory.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::BackgroundJobHistory' } diff --git a/templates/webpages/background_job_history/list.html b/templates/webpages/background_job_history/list.html index 6086776d1..48e78b4ee 100644 --- a/templates/webpages/background_job_history/list.html +++ b/templates/webpages/background_job_history/list.html @@ -49,6 +49,8 @@ [%- END %] + [% L.paginate_controls %] +

-- 2.20.1