]> git.ipfire.org Git - people/jschlag/pbs.git/blob - src/templates/modules/build-table.html
Drop dependency on textile
[people/jschlag/pbs.git] / src / templates / modules / build-table.html
1 {% if dates %}
2 <table class="table table-striped table-hover">
3 <tbody>
4 {% for date, builds in dates %}
5 <tr>
6 <td colspan="4">
7 <h4>
8 {% module HeadingDate(date) %}
9 <small>({{ len(builds) }})</small>
10 </h4>
11 </td>
12 </tr>
13 <tr>
14 <th>{{ _("Build") }}</th>
15 <th>{{ _("Jobs") }}</th>
16 {% if show_repo %}
17 <th>{{ _("Repository") }}</th>
18 {% end %}
19 {% if show_user %}
20 <th>{{ _("User") }}</th>
21 {% end %}
22 {% if show_when %}
23 <th>{{ _("Created") }}</th>
24 {% end %}
25 </tr>
26
27 {% for build in builds %}
28 <tr>
29 <td class="name">
30 <a class="build {{ build.type }} {{ build.state }} {% if build.is_broken() %}line-through{% end %}"
31 href="/build/{{ build.uuid }}">{{ build.name }}</a>
32 </td>
33
34 <td>
35 {% module JobsStatus(build) %}
36 </td>
37
38 {% if show_repo %}
39 <td>
40 {% if build.repo %}
41 <a href="/distro/{{ build.distro.identifier }}">{{ build.distro.name }}</a> /
42 <a href="/distro/{{ build.distro.identifier }}/repo/{{ build.repo.identifier }}">{{ build.repo.name }}</a>
43 {% end %}
44 </td>
45 {% end %}
46
47 {% if show_user %}
48 {% if build.type == "scratch" and build.user %}
49 <td>
50 {% module Maintainer(build.user) %}
51 </td>
52 {% elif build.type == "release" %}
53 <td>{% module Maintainer(build.pkg.maintainer) %}</td>
54 {% else %}
55 <td></td>
56 {% end %}
57 {% end %}
58
59 {% if show_when %}
60 <td>
61 {{ format_date(build.created, relative=True) }}
62 </td>
63 {% end %}
64
65 {% if show_repo_time %}
66 <td>
67 {{ format_date(build.repo_time, relative=False) }}
68 </td>
69 {% end %}
70
71 {% if show_can_move_forward %}
72 <td>
73 {{ build.can_move_forward }}
74 </td>
75 {% end %}
76 </tr>
77 {% end %}
78 {% end %}
79 </tbody>
80 </table>
81 {% else %}
82 <p class="muted ac">
83 {{ _("There are no builds to show at this place right now.") }}
84 </p>
85 {% end %}