]> git.ipfire.org Git - pbs.git/blob - src/templates/modules/jobs/list.html
Fix URL schema for builders
[pbs.git] / src / templates / modules / jobs / list.html
1 <!--
2 The documentation says <table class="table table-striped table-hover table-responsive">
3 but we have to use a div class instead to get the table width enough
4 -->
5 <div class="table-responsive">
6 <table class="table table-striped table-hover">
7 <thead>
8 <tr>
9 <th></th>
10 <th scope="col" >{{ _("Build job") }}</th>
11 <th scope="col" >{{ _("Builder") }}</th>
12 <th scope="col" >{{ _("Runtime") }}</th>
13 </tr>
14 </thead>
15
16 <tbody>
17 {% for job in jobs %}
18 {% if job.state in ("running",) %}
19 <tr class="table-primary">
20 {% elif job.state in ("dispatching", "uploading") %}
21 <tr class="table-info">
22 {% elif job.state in ("aborted", "failed") %}
23 <tr class="table-danger">
24 {% else %}
25 <tr>
26 {% end %}
27
28 <td>
29 {% module JobState(job, show_icon=True) %}
30 </td>
31
32 <td>
33 <a href="/build/{{ job.build.uuid }}">
34 {{ job.build.name }}</a>.<a href="/job/{{ job.uuid }}">{{ job.arch }}</a>
35
36 {% if job.build.type == "scratch" %}
37 <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Scratch build") }}">S</span>
38 {% elif job.test %}
39 <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Test build") }}">T</span>
40 {% end %}
41 </td>
42
43 <td>
44 {% if job.builder %}
45 <a href="/builders/{{ job.builder.name }}">
46 {{ job.builder.name }}
47 </a>
48 {% else %}
49 {{ _("N/A") }}
50 {% end %}
51 </td>
52
53 <td>
54 {{ format_time(job.duration, shorter=True) }}
55 </td>
56 </tr>
57 {% end %}
58 </tbody>
59 </table>
60 </div>