]>
Commit | Line | Data |
---|---|---|
f5311622 JS |
1 | <div class="card mb-3 |
2 | {% if build.type == "release" and build.repo.type == "stable" %} | |
3 | border-success | |
4 | {% elif build.type == "release" and build.repo.type == "unstable" %} | |
5 | border-warning | |
6 | {% elif build.type == "release" and build.repo.type == "testing" %} | |
7 | border-danger | |
8 | {% elif build.type == "scratch" %} | |
9 | border-danger | |
10 | {% end %}" style="width:100%;"> | |
11 | <div class="card-header | |
12 | {% if build.type == "release" and build.repo %} | |
13 | {% if build.repo.type == "stable" %} | |
14 | text-success"> | |
15 | <a href="/distro/{{ build.repo.distro.identifier }}/repo/{{ build.repo.name }}"> | |
16 | {{ build.repo.distro.name }} ‐ {{ build.repo.name }} | |
17 | </a> | |
18 | {% elif build.repo.type == "unstable" %} | |
19 | text-warning"> | |
20 | <a href="/distro/{{ build.repo.distro.identifier }}/repo/{{ build.repo.name }}"> | |
21 | {{ build.repo.distro.name }} ‐ {{ build.repo.name }} | |
22 | </a> | |
23 | {% elif build.repo.type == "testing" %} | |
24 | text-danger"> | |
25 | <a href="/distro/{{ build.repo.distro.identifier }}/repo/{{ build.repo.name }}"> | |
26 | {{ build.repo.distro.name }} ‐ {{ build.repo.name }} | |
27 | </a> | |
28 | {% end %} | |
29 | {% elif build.type == "scratch" %} | |
30 | text-secondary"> | |
31 | {{ _("Scratch build") }} | |
32 | {% end %} | |
33 | </div> | |
34 | <div class="card-body"> | |
35 | <h4 class="card-title"> | |
36 | <a href="/build/{{ build.uuid }}"> | |
37 | {% if build.is_broken() %} | |
38 | <s>{{ build.name }}</s> | |
39 | {% else %} | |
40 | {{ build.name }} | |
41 | {% end %} | |
42 | </a> | |
b9d096e0 MT |
43 | </h4> |
44 | ||
45 | <hr> | |
46 | ||
a15d6139 MT |
47 | {% if build.type == "release" %} |
48 | {% if build.commit %} | |
c6e799b4 | 49 | {% module CommitMessage(build.commit) %} |
b9d096e0 | 50 | |
a15d6139 | 51 | <hr> |
4b1e87c4 | 52 | |
a15d6139 | 53 | <p class="muted"> |
8dc6f5a4 | 54 | {{ _("Author") }} {% module LinkToUser(build.commit.author) %} |
a15d6139 MT |
55 | </p> |
56 | {% else %} | |
57 | <p class="muted"> | |
58 | {{ _("No commit message.") }} | |
a15d6139 MT |
59 | </p> |
60 | {% end %} | |
4b1e87c4 | 61 | |
a15d6139 | 62 | {% elif build.type == "scratch" %} |
b9d096e0 | 63 | <p class="muted"> |
8dc6f5a4 | 64 | {{ _("Owner") }} {% module LinkToUser(build.owner) %} |
b9d096e0 MT |
65 | </p> |
66 | {% end %} | |
f5311622 JS |
67 | </div> |
68 | <div class="card-footer text-muted text-right"> | |
69 | {{ locale.format_date(build.created, shorter=True) }} | |
70 | </div> | |
71 | ||
72 | </div> |