X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5f49de40a2c8c6eca92bb3fd88c1ee0126264bd1..51d0274dc6b40830d38bcc209bb9c402433c1b38:/SL/Controller/BackgroundJobHistory.pm?ds=inline diff --git a/SL/Controller/BackgroundJobHistory.pm b/SL/Controller/BackgroundJobHistory.pm index 54d733808..ec9ebfe5a 100644 --- a/SL/Controller/BackgroundJobHistory.pm +++ b/SL/Controller/BackgroundJobHistory.pm @@ -4,6 +4,8 @@ use strict; use parent qw(SL::Controller::Base); +use SL::Controller::Helper::GetModels; +use SL::Controller::Helper::Sorted; use SL::DB::BackgroundJobHistory; use SL::Helper::Flash; use SL::System::TaskServer; @@ -18,6 +20,16 @@ __PACKAGE__->run_before('check_auth'); __PACKAGE__->run_before('add_stylesheet'); __PACKAGE__->run_before('check_task_server'); +__PACKAGE__->make_sorted( + ONLY => [ qw(list) ], + + package_name => $::locale->text('Package name'), + run_at => $::locale->text('Run at'), + status => $::locale->text('Execution status'), + result => $::locale->text('Result'), + error => $::locale->text('Error'), +); + # # actions # @@ -27,7 +39,7 @@ sub action_list { $self->render('background_job_history/list', title => $::locale->text('Background job history'), - ENTRIES => SL::DB::Manager::BackgroundJobHistory->get_all_sorted); + ENTRIES => $self->get_models); } sub action_show {