1 [% USE HTML %][% USE L %][% USE LxERP %]
3 <h1>[% FORM.title %]</h1>
5 [%- INCLUDE 'common/flash.html' %]
7 <form method="post" action="controller.pl">
10 [%- LxERP.t8('There are no entries in the background job history.') %]
14 <table id="background_job_history_list" class="background_job_list" width="100%">
16 <tr class="listheading">
17 <th>[% L.sortable_table_header('package_name') %]</th>
18 <th>[% L.sortable_table_header('run_at') %]</th>
19 <th>[% L.sortable_table_header('status') %]</th>
20 <th>[% L.sortable_table_header('result') %]</th>
21 <th>[% L.sortable_table_header('error') %]</th>
26 [%- FOREACH entry = ENTRIES %]
27 <tr class="listrow[% loop.count % 2 %]" id="background_job_history_id_[% entry.id %]">
29 <a href="[% SELF.url_for(action => 'show', id => entry.id, back_to => SELF.get_callback) %]">
30 [%- HTML.escape(entry.package_name) %]
33 <td>[%- HTML.escape(entry.run_at.to_lxoffice('precision' => 'second')) %]</td>
35 [%- IF entry.status == 'success' %]
36 [%- LxERP.t8('succeeded') %]
37 [%- ELSIF entry.status == 'failure' %]
38 [%- LxERP.t8('failed') %]
40 [%- HTML.escape(entry.status) %]
43 <td>[%- HTML.escape(entry.result) %]</td>
44 <td>[% IF entry.error_col %]<pre>[%- HTML.escape(L.truncate(entry.error_col)) %]</pre>[%- END %]</td>
51 [% L.paginate_controls %]
56 <a href="[% SELF.url_for(controller => 'BackgroundJob', action => 'list') %]">[%- LxERP.t8('View background jobs') %]</a>
58 <a href="[% SELF.url_for(controller => 'TaskServer', action => 'show') %]">[%- LxERP.t8('Task server control') %]</a>