@@ -, +, @@ --- .../background_jobs/update_elastic_index.inc | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc @@ -1,18 +1,19 @@ [% USE Koha %] +[% SET report = job.decoded_data %] [% BLOCK report %] - [% SET report = job.report %] - [% IF report %] - [% IF report.total_records == 1 %] - [% IF report.total_success == 1 %] -
- [% END %] + [% IF job.status == 'finished' %] + [% IF report %] + [% ELSE %] [% END %] + [% ELSIF job.status == 'cancelled' %] + The job has been cancelled before it finished. [% END %] [% END %] @@ -32,7 +33,16 @@ [% END %] [% END %] + [% IF report %] +