View | Details | Raw Unified | Return to bug 33316
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/update_elastic_index.inc (-9 / +18 lines)
Lines 1-18 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
2
3
[% SET report = job.decoded_data %]
3
[% BLOCK report %]
4
[% BLOCK report %]
4
    [% SET report = job.report %]
5
    [% IF job.status == 'finished' %]
5
    [% IF report %]
6
        [% IF report %]
6
        [% IF report.total_records == 1 %]
7
            <div class="dialog message">
7
            [% IF report.total_success == 1 %]
8
                [% report.record_ids.size | html %] records have successfully been reindexed.
8
                <div class="dialog message">The records have successfully been reindexed!</div>
9
            </div>
9
            [% END %]
10
        [% ELSE %]
10
        [% ELSE %]
11
            <div class="dialog message">
11
            <div class="dialog message">
12
                [% report.total_success | html %] / [% report.total_records | html %] records have successfully been reindexed. Some errors occurred.
12
               Job data could not be read, see the logs for details
13
                [% IF job.status == 'cancelled' %]<span>The job has been cancelled before it finished.</span>[% END %]
14
            </div>
13
            </div>
15
        [% END %]
14
        [% END %]
15
    [% ELSIF job.status == 'cancelled' %]
16
        <span>The job has been cancelled before it finished.</span>
16
    [% END %]
17
    [% END %]
17
[% END %]
18
[% END %]
18
19
Lines 32-38 Link Here
32
            [% END %]
33
            [% END %]
33
        </div>
34
        </div>
34
    [% END %]
35
    [% END %]
36
    [% IF report %]
37
        <h2> Record ids:</h2>
38
        <ul>
39
        [% FOREACH record_id IN report.record_ids %]
40
            <li>[% record_id | html %]</li>
41
        [% END %]
42
        </ul>
43
    [% END %]
35
[% END %]
44
[% END %]
36
45
46
37
[% BLOCK js %]
47
[% BLOCK js %]
38
[% END %]
48
[% END %]
39
- 

Return to bug 33316