From: Moritz Bunkus Date: Mon, 3 Sep 2012 14:54:32 +0000 (+0200) Subject: Paginaten für die BackgroundJobHistory-Controller-List-View X-Git-Tag: release-3.0.0beta1~251^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=07d65516a53475a8f40714da7b4d2f906cb62804;p=kivitendo-erp.git Paginaten für die BackgroundJobHistory-Controller-List-View --- 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 %] +