]> git.ipfire.org Git - people/jschlag/pbs.git/blame - data/templates/modules/jobs-list.html
Add icons to job states.
[people/jschlag/pbs.git] / data / templates / modules / jobs-list.html
CommitLineData
f6e6ff79 1{% if jobs %}
fa522f9a 2 <table class="table table-striped table-hover">
f6e6ff79 3 {% for job in jobs %}
8806a2ac 4 <tr {% if job.state in ("aborted", "failed") %}class="error"{% end %}>
f6e6ff79
MT
5 <td>
6 {% if job.state == "dispatching" %}
7 <i class="icon-chevron-left"></i>
8 {% elif job.state == "running" %}
9 <i class="icon-retweet"></i>
10 {% elif job.state == "finished" %}
11 <i class="icon-ok"></i>
12 {% elif job.state == "dependency_error" %}
13 <i class="icon-random"></i>
14 {% elif job.state == "failed" %}
15 <i class="icon-remove"></i>
16 {% elif job.state == "uploading" %}
17 <i class="icon-chevron-right"></i>
18 {% elif job.state == "aborted" %}
19 <i class="icon-warning-sign"></i>
20 {% end %}
21
22 <a href="/build/{{ job.build.uuid }}">
23 {{ job.build.name }}</a>.<a href="/job/{{ job.uuid }}">{{ job.arch.name }}</a>
24
25 {% if job.build.type == "scratch" %}
26 <span class="label label-inverse">S</span>
27 {% elif job.type == "test" %}
28 <span class="label label-inverse">T</span>
29 {% end %}
30
31 {% if show_builder and job.builder %}
32 <br />
33 {{ _("Builder") }}:
34 <a href="/builder/{{ job.builder.name }}">
35 {{ job.builder.name }}
36 </a>
37 {% end %}
38 </td>
39 </tr>
40 {% end %}
41 </table>
42{% else %}
43 {{ _("No jobs to display.") }}
44{% end %}