Lines 1-13
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
|
|
3 |
[% USE KohaDates %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% SET footerjs = 1 %] |
|
|
5 |
[% BLOCK show_job_status %] |
6 |
[% SWITCH job.status %] |
7 |
[% CASE "cancelled" %] |
8 |
Cancelled |
9 |
[% CASE "finished" %] |
10 |
Finished |
11 |
[% CASE "started" %] |
12 |
Started |
13 |
[% CASE "running" %] |
14 |
Running |
15 |
[% CASE # Default case %] |
16 |
[% job.status | html %] |
17 |
[% END -%] |
18 |
[% END %] |
19 |
[% BLOCK show_job_type %] |
20 |
[% SWITCH job.type %] |
21 |
[% CASE "batch_biblio_record_modification" %] |
22 |
Batch bibliographic record modification |
23 |
[% CASE "batch_authority_record_modification" %] |
24 |
Batch authority record modification |
25 |
[% CASE # Default case %] |
26 |
[% job.type | html %] |
27 |
[% END %] |
28 |
[% END %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
29 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Administration › [% IF op =='add_form' %]Background jobs› [% IF job %] View background job[% ELSE %] Background jobs[% END %][% END %]</title> |
30 |
<title>Koha › Administration › Background jobs [% IF op == 'view' %] › Details of job #[% job.id | html %][% END %]</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
31 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
</head> |
32 |
</head> |
8 |
|
33 |
|
9 |
<body id="admin_background_jobs" class="admin"> |
34 |
<body id="admin_background_jobs" class="admin"> |
10 |
[% INCLUDE 'header.inc' %] |
35 |
[% INCLUDE 'header.inc' %] |
|
|
36 |
[% INCLUDE 'prefs-admin-search.inc' %] |
11 |
|
37 |
|
12 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
38 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
13 |
<ol> |
39 |
<ol> |
Lines 19-27
Link Here
|
19 |
<li> |
45 |
<li> |
20 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
46 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
21 |
</li> |
47 |
</li> |
22 |
<li> |
48 |
[% IF op == 'view' %] |
23 |
<a href="#" aria-current="page">Background jobs</a> |
49 |
<li> |
24 |
</li> |
50 |
<a href="/cgi-bin/koha/admin/background_jobs.pl">Background jobs</a> |
|
|
51 |
</li> |
52 |
<li> |
53 |
<a href="#" aria-current="page">Details of job #[% job.id | html %]</a> |
54 |
</li> |
55 |
[% ELSE %] |
56 |
<li> |
57 |
<a href="#" aria-current="page">Background jobs</a> |
58 |
</li> |
59 |
[% END %] |
25 |
[% ELSE %] |
60 |
[% ELSE %] |
26 |
<li> |
61 |
<li> |
27 |
<a href="#" aria-current="page">Administration</a> |
62 |
<a href="#" aria-current="page">Administration</a> |
Lines 47-63
Link Here
|
47 |
[% END %] |
82 |
[% END %] |
48 |
|
83 |
|
49 |
[% IF op == 'view' %] |
84 |
[% IF op == 'view' %] |
50 |
<h1>Detail of job #[% job.id | html %]</h1> |
85 |
<h1>Details of job #[% job.id | html %]</h1> |
51 |
|
86 |
|
52 |
<fieldset class="rows"> |
87 |
<fieldset class="rows"> |
53 |
<ol> |
88 |
<ol> |
54 |
<li><span class="label">Job ID: </span>[% job.id | html %]</li> |
89 |
<li><span class="label">Job ID: </span>[% job.id | html %]</li> |
55 |
<li><label for="job_status">Status: </label>[% job.status | html %]</li> |
90 |
<li> |
|
|
91 |
<label for="job_status">Status: </label> |
92 |
[% PROCESS show_job_status %] |
93 |
</li> |
56 |
<li><label for="job_progress">Progress: </label>[% job.progress || 0 | html %] / [% job.size | html %]</li> |
94 |
<li><label for="job_progress">Progress: </label>[% job.progress || 0 | html %] / [% job.size | html %]</li> |
57 |
<li><label for="job_type">Type: </label>[% job.type | html %]</li> |
95 |
<li> |
58 |
<li><label for="job_enqueued_on">Queued: </label>[% job.enqueued_on | html %]</li> |
96 |
<label for="job_type">Type: </label> |
59 |
<li><label for="job_started_on">Started: </label>[% job.started_on | html %]</li> |
97 |
[% PROCESS show_job_type %] |
60 |
<li><label for="job_ended_on">Ended: </label>[% job.ended_on | html %]</li> |
98 |
</li> |
|
|
99 |
<li> |
100 |
<label for="job_enqueued_on">Queued: </label> |
101 |
[% job.enqueued_on | $KohaDates with_hours = 1 %] |
102 |
</li> |
103 |
<li> |
104 |
<label for="job_started_on">Started: </label> |
105 |
[% job.started_on | $KohaDates with_hours = 1 %] |
106 |
</li> |
107 |
<li> |
108 |
<label for="job_ended_on">Ended: </label> |
109 |
[% job.ended_on | $KohaDates with_hours = 1 %] |
110 |
</li> |
61 |
<li><label for="job_data">Report: </label> |
111 |
<li><label for="job_data">Report: </label> |
62 |
[% SWITCH job.type %] |
112 |
[% SWITCH job.type %] |
63 |
[% CASE 'batch_biblio_record_modification' %] |
113 |
[% CASE 'batch_biblio_record_modification' %] |
Lines 148-154
Link Here
|
148 |
</fieldset> |
198 |
</fieldset> |
149 |
|
199 |
|
150 |
[% IF CAN_user_parameters_manage_background_jobs %] |
200 |
[% IF CAN_user_parameters_manage_background_jobs %] |
151 |
<a href="/cgi-bin/koha/admin/background_jobs.pl">Return to the job list</a> |
201 |
<fieldset class="action"> |
|
|
202 |
<a href="/cgi-bin/koha/admin/background_jobs.pl">Return to the job list</a> |
203 |
</fieldset> |
152 |
[% END %] |
204 |
[% END %] |
153 |
[% END %] |
205 |
[% END %] |
154 |
|
206 |
|
Lines 174-180
Link Here
|
174 |
[% FOREACH job IN jobs %] |
226 |
[% FOREACH job IN jobs %] |
175 |
<tr> |
227 |
<tr> |
176 |
<td>[% job.id | html %]</td> |
228 |
<td>[% job.id | html %]</td> |
177 |
<td>[% job.status | html %]</td> |
229 |
<td> |
|
|
230 |
[% PROCESS show_job_status %] |
231 |
</td> |
178 |
<td>[% job.progress || 0 | html %] / [% job.size | html %]</td> |
232 |
<td>[% job.progress || 0 | html %] / [% job.size | html %]</td> |
179 |
<td> |
233 |
<td> |
180 |
[% SWITCH job.type %] |
234 |
[% SWITCH job.type %] |
Lines 183-191
Link Here
|
183 |
[% CASE %][% job.type | html %] |
237 |
[% CASE %][% job.type | html %] |
184 |
[% END %] |
238 |
[% END %] |
185 |
</td> |
239 |
</td> |
186 |
<td>[% job.enqueued_on | html %]</td> |
240 |
<td>[% job.enqueued_on | $KohaDates with_hours = 1 %]</td> |
187 |
<td>[% job.started_on| html %]</td> |
241 |
<td>[% job.started_on| $KohaDates with_hours = 1 %]</td> |
188 |
<td>[% job.ended_on| html %]</td> |
242 |
<td>[% job.ended_on| $KohaDates with_hours = 1 %]</td> |
189 |
<td class="actions"> |
243 |
<td class="actions"> |
190 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job.id | html %]"><i class="fa fa-eye"></i> View</a> |
244 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job.id | html %]"><i class="fa fa-eye"></i> View</a> |
191 |
[% IF job.status == 'new' || job.status == 'started' %] |
245 |
[% IF job.status == 'new' || job.status == 'started' %] |
192 |
- |
|
|