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;
templates/webpages/background_job_history/list.html
50 50
[%- END %]
51 51

  
52 52
[% L.paginate_controls %]
53

  
54
<hr size="3" noshade>
55

  
56
<p>
57
 <a href="[% SELF.url_for(controller => 'BackgroundJob', action => 'list') %]">[%- LxERP.t8('View background jobs') %]</a>
58
 |
59
 <a href="[% SELF.url_for(controller => 'TaskServer', action => 'show') %]">[%- LxERP.t8('Task server control') %]</a>
60
</p>
templates/webpages/background_job_history/show.html
45 45
   </tr>
46 46
  </tbody>
47 47
 </table>
48

  
49
 <p>
50
  <a href="[% back_to %]">[%- LxERP.t8('Back') %]</a>
51
 </p>

Auch abrufbar als: Unified diff