[% USE HTML %][% USE L %][% USE LxERP %]
[% FORM.title %]
[%- INCLUDE 'common/flash.html' %]
[% IF !ENTRIES.size %]

[%- LxERP.t8('There are no entries in the background job history.') %]

[%- ELSE %] [%- FOREACH entry = ENTRIES %] [%- END %]
[%- LxERP.t8('Package name') %] [%- LxERP.t8('Run at') %] [%- LxERP.t8('Execution status') %] [%- LxERP.t8('Result') %] [%- LxERP.t8('Error') %]
[%- HTML.escape(entry.package_name) %] [%- HTML.escape(entry.run_at.to_lxoffice('precision' => 'second')) %] [%- IF entry.status == 'success' %] [%- LxERP.t8('succeeded') %] [%- ELSIF entry.status == 'failure' %] [%- LxERP.t8('failed') %] [%- ELSE %] [%- HTML.escape(entry.status) %] [%- END %] [%- HTML.escape(entry.result) %] [% IF entry.error_col %]
[%- HTML.escape(L.truncate(entry.error_col)) %]
[%- END %]
[%- END %]

[%- LxERP.t8('View background jobs') %] | [%- LxERP.t8('Task server control') %]