X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FBackgroundJobHistory.pm;h=4fbd7ece0c3614725f58ae06848a73d3c9341714;hb=b775c378552e6b5bf59f98046cdf4e577cd351df;hp=6572e231dab1ec19624d1480a20ab2847feaacbf;hpb=b8451c6b134fd04efa1679124974d662be42d5a0;p=kivitendo-erp.git diff --git a/SL/Controller/BackgroundJobHistory.pm b/SL/Controller/BackgroundJobHistory.pm index 6572e231d..4fbd7ece0 100644 --- a/SL/Controller/BackgroundJobHistory.pm +++ b/SL/Controller/BackgroundJobHistory.pm @@ -29,6 +29,7 @@ sub action_list { $self->make_filter_summary; + $self->setup_list_action_bar; $self->render('background_job_history/list', title => $::locale->text('Background job history'), ENTRIES => $self->models->get, @@ -41,6 +42,7 @@ sub action_show { my $back_to = $::form->{back_to} || $self->url_for(action => 'list'); $self->history(SL::DB::BackgroundJobHistory->new(id => $::form->{id})->load); + $self->setup_show_action_bar; $self->render('background_job_history/show', title => $::locale->text('View background job execution result'), back_to => $back_to); @@ -68,7 +70,7 @@ sub check_task_server { } sub add_stylesheet { - $::request->{layout}->use_stylesheet('lx-office-erp/background_jobs.css'); + $::request->{layout}->use_stylesheet('background_jobs.css'); } sub make_filter_summary { @@ -111,4 +113,34 @@ sub init_models { ); } +sub setup_list_action_bar { + my ($self) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + link => [ + t8('Server control'), + link => $self->url_for(controller => 'TaskServer', action => 'show'), + ], + link => [ + t8('List of jobs'), + link => $self->url_for(controller => 'BackgroundJob', action => 'list'), + ], + ); + } +} + +sub setup_show_action_bar { + my ($self) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + link => [ + t8('Back'), + link => $self->url_for(action => 'list'), + ], + ); + } +} + 1;