]> git.ipfire.org Git - pbs.git/blame - src/templates/modules/jobs-table.html
Use autotools
[pbs.git] / src / templates / modules / jobs-table.html
CommitLineData
fa522f9a 1<table class="table table-striped table-hover">
f6e6ff79
MT
2 <thead>
3 <tr>
4 <th>{{ _("Arch") }}</th>
5 <th>{{ _("State") }}</th>
6 <th>{{ _("Host") }}</th>
7 <th>{{ _("Duration") }}</th>
8 </tr>
9 </thead>
10 <tbody>
11 {% if jobs %}
12 {% for job in jobs %}
13 <tr>
14 <td>
15 <a href="/job/{{ job.uuid }}">{{ job.arch.name }}</a>
16 </td>
17 <td>
18 {% if job.state == "new" %}
19 {{ _("New") }}
20 {% elif job.state == "pending" %}
21 {{ _("Pending") }}
22 {% elif job.state == "failed" %}
23 {{ _("Failed") }}
24 {% elif job.state == "dispatching" %}
25 {{ _("Dispatching") }}
26 {% elif job.state == "finished" %}
27 {{ _("Finished") }}
28 {% elif job.state == "running" %}
29 {{ _("Running") }}
30 {% elif job.state == "aborted" %}
31 {{ _("Aborted") }}
32 {% elif job.state == "dependency_error" %}
33 {{ _("Dependency error") }}
34 {% else %}
35 {{ job.state }}
36 {% end %}
37 </td>
38 <td>
39 {% if job.builder %}
40 <a href="/builder/{{ job.builder.name }}">{{ job.builder.name }}</a>
41 {% else %}
42 {{ _("N/A") }}
43 {% end %}
44 </td>
45 <td>
46 {% if job.state == "running" %}
47 {{ _("Running since %s") % friendly_time(job.duration) }}
48 {% elif job.duration %}
49 {{ friendly_time(job.duration) }}
50 {% else %}
51 {{ _("Not finished, yet.") }}
52 {% end %}
53 </td>
54 </tr>
55 {% end %}
56
57 {% if not build.supported_arches == "all" %}
58 <tr>
59 <td colspan="4">
60 {{ _("This package only supports %s.") % locale.list(build.supported_arches.split()) }}
61 </td>
62 </tr>
63 {% end %}
64 {% else %}
65 <tr>
66 <td colspan="4">{{ _("No jobs, yet.") }}</td>
67 </tr>
68 {% end %}
69 </tbody>
70</table>