[% USE raw %]
[% USE KohaDates %]
[% USE Asset %]
[% USE KohaDates %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% FILTER collapse %]
[% IF op == 'view' %]
[% tx("Details of job #{job_id}", { job_id = job.id }) | html %] ›
[% END %]
[% t("Jobs") | html %] ›
[% t("Administration") | html %] ›
[% t("Koha") | html %]
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
[% WRAPPER 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% WRAPPER breadcrumbs %]
[% IF CAN_user_parameters_manage_background_jobs %]
[% WRAPPER breadcrumb_item %]
Administration
[% END %]
[% IF op == 'view' %]
[% WRAPPER breadcrumb_item %]
Jobs
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Details of job #[% job.id | html %]
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Jobs
[% END %]
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Administration
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'cannot_view_job' %]
Insufficient permission to see this job.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'view' %]
Details of job #[% job.id | html %]
[% PROCESS "background_jobs/${job.type}.inc" %]
Report
[% IF job.status != 'new' %][% PROCESS 'report' %][% END %]
Detailed messages
[% IF job.status != 'new' %][% PROCESS 'detail' %][% END %]
[% IF CAN_user_parameters_manage_background_jobs %]
[% END %]
[% END %]
[% IF op == 'list' %]
Jobs
Job ID
Status
Progress
Type
Queued
Started
Ended
Actions
[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'js-date-format.inc' %]
[% INCLUDE 'datatables.inc' %]
[% IF op == 'view' %]
[% PROCESS 'js' %]
[% END %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]