Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 32dbd0b3

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 32dbd0b3957724a442dc86c3adba9ef09c3f6d8e
  • Vorgänger 1df575c4
  • Nachfolger 9871f82b

ActionBar: Verwendung bei »Verlauf der Hintergrund-Jobs«

Unterschiede anzeigen:

SL/Controller/BackgroundJobHistory.pm
29 29

  
30 30
  $self->make_filter_summary;
31 31

  
32
  $self->setup_list_action_bar;
32 33
  $self->render('background_job_history/list',
33 34
                title   => $::locale->text('Background job history'),
34 35
                ENTRIES => $self->models->get,
......
41 42
  my $back_to = $::form->{back_to} || $self->url_for(action => 'list');
42 43

  
43 44
  $self->history(SL::DB::BackgroundJobHistory->new(id => $::form->{id})->load);
45
  $self->setup_show_action_bar;
44 46
  $self->render('background_job_history/show',
45 47
                title   => $::locale->text('View background job execution result'),
46 48
                back_to => $back_to);
......
111 113
  );
112 114
}
113 115

  
116
sub setup_list_action_bar {
117
  my ($self) = @_;
118

  
119
  for my $bar ($::request->layout->get('actionbar')) {
120
    $bar->add(
121
      link => [
122
        t8('Server control'),
123
        link => $self->url_for(controller => 'TaskServer', action => 'show'),
124
      ],
125
      link => [
126
        t8('List of jobs'),
127
        link => $self->url_for(controller => 'BackgroundJob', action => 'list'),
128
      ],
129
    );
130
  }
131
}
132

  
133
sub setup_show_action_bar {
134
  my ($self) = @_;
135

  
136
  for my $bar ($::request->layout->get('actionbar')) {
137
    $bar->add(
138
      link => [
139
        t8('Back'),
140
        link => $self->url_for(action => 'list'),
141
      ],
142
    );
143
  }
144
}
145

  
114 146
1;

Auch abrufbar als: Unified diff