Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 220746bf

Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt

Paginaten für die BackgroundJob-Controller-List-View

Unterschiede anzeigen:

SL/Controller/BackgroundJob.pm
5 5
use parent qw(SL::Controller::Base);
6 6

  
7 7
use SL::Controller::Helper::GetModels;
8
use SL::Controller::Helper::Paginated;
8 9
use SL::Controller::Helper::Sorted;
9 10
use SL::DB::BackgroundJob;
10 11
use SL::Helper::Flash;
......
20 21
__PACKAGE__->run_before('check_task_server');
21 22
__PACKAGE__->run_before('load_background_job', only => [ qw(edit update destroy execute) ]);
22 23

  
24
__PACKAGE__->make_paginated(ONLY => [ qw(list) ]);
25

  
23 26
__PACKAGE__->make_sorted(
24 27
  ONLY         => [ qw(list) ],
25 28

  
SL/DB/Manager/BackgroundJob.pm
5 5
use SL::DB::Helper::Manager;
6 6
use base qw(SL::DB::Helper::Manager);
7 7

  
8
use SL::DB::Helper::Paginated;
8 9
use SL::DB::Helper::Sorted;
9 10

  
10 11
sub object_class { 'SL::DB::BackgroundJob' }
templates/webpages/background_job/list.html
64 64
   </table>
65 65
  [%- END %]
66 66

  
67
  [% L.paginate_controls %]
68

  
67 69
  <hr size="3" noshade>
68 70

  
69 71
  <p>

Auch abrufbar als: Unified diff