]> git.ipfire.org Git - people/jschlag/pbs.git/blame - src/templates/modules/jobs/list.html
Merge branch 'master' of git://git.ipfire.org/pbs
[people/jschlag/pbs.git] / src / templates / modules / jobs / list.html
CommitLineData
6e63ed49
MT
1<table class="table table-striped table-hover">
2 <thead>
3 <tr>
4 <th></th>
5 <th>{{ _("Build job") }}</th>
6 <th>{{ _("Builder") }}</th>
7 <th>{{ _("Runtime") }}</th>
8 </tr>
9 </thead>
10
11 <tbody>
12 {% for job in jobs %}
13 {% if job.state in ("running",) %}
14 <tr class="success">
15 {% elif job.state in ("dispatching", "uploading") %}
16 <tr class="info">
17 {% elif job.state in ("aborted", "dependency_error", "failed") %}
18 <tr class="error">
19 {% else %}
20 <tr>
21 {% end %}
22
23 <td>
24 {% module JobState(job, show_icon=True) %}
25 </td>
26
27 <td>
28 <a href="/build/{{ job.build.uuid }}">
044a9c43 29 {{ job.build.name }}</a>.<a href="/job/{{ job.uuid }}">{{ job.arch }}</a>
6e63ed49
MT
30
31 {% if job.build.type == "scratch" %}
32 <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Scratch build") }}">S</span>
4f90cf84 33 {% elif job.test %}
6e63ed49
MT
34 <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Test build") }}">T</span>
35 {% end %}
36 </td>
37
38 <td>
39 {% if job.builder %}
40 <a href="/builder/{{ job.builder.name }}">
41 {{ job.builder.name }}
42 </a>
43 {% else %}
44 {{ _("N/A") }}
45 {% end %}
46 </td>
47
48 <td>
7514d7dc 49 {{ format_time(job.duration, shorter=True) }}
6e63ed49
MT
50 </td>
51 </tr>
52 {% end %}
53 </tbody>
54</table>