Hintergrundjobverlauf: Callback richtig setzen
[kivitendo-erp.git] / templates / webpages / background_job_history / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3 <h1>[% FORM.title %]</h1>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7 [%- PROCESS 'background_job_history/_filter.html' filter=SELF.models.filtered.laundered %]
8
9 [% IF !ENTRIES.size %]
10  <p>
11   [%- LxERP.t8('There are no entries in the background job history.') %]
12  </p>
13
14 [%- ELSE %]
15  <table id="background_job_history_list" class="background_job_list" width="100%">
16   <thead>
17    <tr class="listheading">
18     <th>[% L.sortable_table_header('package_name') %]</th>
19     <th>[% L.sortable_table_header('run_at') %]</th>
20     <th>[% L.sortable_table_header('status') %]</th>
21     <th>[% L.sortable_table_header('result') %]</th>
22     <th>[% L.sortable_table_header('error') %]</th>
23    </tr>
24   </thead>
25
26   <tbody>
27   [%- FOREACH entry = ENTRIES %]
28   <tr class="listrow[% loop.count % 2 %]" id="background_job_history_id_[% entry.id %]">
29    <td>
30     <a href="[% SELF.url_for(action => 'show', id => entry.id, back_to => SELF.models.get_callback) %]">
31      [%- HTML.escape(entry.package_name) %]
32     </a>
33    </td>
34    <td>[%- HTML.escape(entry.run_at.to_lxoffice('precision' => 'second')) %]</td>
35    <td>
36     [%- IF entry.status == 'success' %]
37      [%- LxERP.t8('succeeded') %]
38     [%- ELSIF entry.status == 'failure' %]
39      [%- LxERP.t8('failed') %]
40     [%- ELSE %]
41      [%- HTML.escape(entry.status) %]
42     [%- END %]
43    </td>
44    <td>[%- HTML.escape(entry.result) %]</td>
45    <td>[% IF entry.error_col %]<pre>[%- HTML.escape(L.truncate(entry.error_col)) %]</pre>[%- END %]</td>
46   </tr>
47   [%- END %]
48   </tbody>
49  </table>
50 [%- END %]
51
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>