Bug 30733: [22.05] Simplify translatable strings
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / background_jobs / update_elastic_index.inc
1 [% USE Koha %]
2
3 [% BLOCK report %]
4     [% SET report = job.report %]
5     [% IF report %]
6         [% IF report.total_records == 1 %]
7             [% IF report.total_success == 1 %]
8                 <div class="dialog message">The records have successfully been reindexed!</div>
9             [% END %]
10         [% ELSE %]
11             <div class="dialog message">
12                 [% report.total_success | html %] / [% report.total_records | html %] records have successfully been reindexed. Some errors occurred.
13                 [% IF job.status == 'cancelled' %]<span>The job has been cancelled before it finished.</span>[% END %]
14             </div>
15         [% END %]
16     [% END %]
17 [% END %]
18
19 [% BLOCK detail %]
20     [% FOR m IN job.messages %]
21         <div class="dialog message">
22             [% IF m.type == 'success' %]
23                 <i class="fa fa-check success"></i>
24             [% ELSIF m.type == 'warning' %]
25                 <i class="fa fa-warning warn"></i>
26             [% ELSIF m.type == 'error' %]
27                 <i class="fa fa-exclamation error"></i>
28             [% END %]
29             [% SWITCH m.code %]
30             [% CASE 'index_error' %]
31                 Something went wrong during the indexation process: [% m.error | html %]
32             [% END %]
33         </div>
34     [% END %]
35 [% END %]
36
37 [% BLOCK js %]
38 [% END %]