Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 07d65516

Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt

  • ID 07d65516a53475a8f40714da7b4d2f906cb62804
  • Vorgänger ef32afed
  • Nachfolger 220746bf

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

Unterschiede anzeigen:

SL/Controller/BackgroundJobHistory.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::BackgroundJobHistory;
10 11
use SL::Helper::Flash;
......
20 21
__PACKAGE__->run_before('add_stylesheet');
21 22
__PACKAGE__->run_before('check_task_server');
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/BackgroundJobHistory.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::BackgroundJobHistory' }
templates/webpages/background_job_history/list.html
49 49
   </table>
50 50
  [%- END %]
51 51

  
52
  [% L.paginate_controls %]
53

  
52 54
  <hr size="3" noshade>
53 55

  
54 56
  <p>

Auch abrufbar als: Unified diff