blob: c16b85019801dd14029ac58339d51dbcda4d1741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
{%extends "background-jobs/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}
{%block title%}Background Jobs{%endblock%}
{%block pagetitle%}Background Jobs{%endblock%}
{%block contents%}
{{flash_all_messages()}}
<div class="row"><h2 class="heading">Background Jobs</h2></div>
<div class="row">
<div class="table-responsive">
<table class="table">
<thead>
<tr class="table-primary">
<th>Type</th>
<th>Created</th>
<th title="Date and time past which the job's details will be deleted from the system.">
Expires</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{%for job in jobs%}
<tr>
<td>{{job.metadata["job-type"]}}</td>
<td>{{display_datetime(job.created)}}</td>
<td title="Date and time past which the job's details will be deleted from the system.">
{{display_datetime(job.expires)}}
</td>
<td {%if job.metadata.status == "completed"%}
class="fw-bold text-capitalize text-success"
{%elif job.metadata.status == "error"%}
class="fw-bold text-capitalize text-danger"
{%elif job.metadata.status == "stopped"%}
class="fw-bold text-capitalize text-warning"
{%else%}
class="fw-bold text-capitalize text-info"
{%endif%}>
<div>
{{job.metadata.status}}
</div>
</td>
<td>
<a href="{{url_for('background-jobs.job_summary', job_id=job.job_id)}}"
class="btn btn-info"
title="View more detailed information about this job.">
view summary</a>
</td>
</tr>
{%else%}
<tr>
<td colspan="5">
You do not have any jobs you have run in the background.</td>
</tr>
{%endfor%}
</tbody>
</table>
</div>
</div>
{%endblock%}
{%block sidebarcontents%}
<div class="row">
<h6 class="subheading">What is this?</h6>
</div>
<div class="row">
<p>The table lists the jobs that are running in the background, that you
started.</p>
<p>You can use the tools provided on this page to manage the jobs, and to view
each job's details.</p>
</div>
{{super()}}
{%endblock%}
|