]> git.ipfire.org Git - pbs.git/blame - src/templates/events/modules/system-message.html
sources: Run dist() in a separate thread
[pbs.git] / src / templates / events / modules / system-message.html
CommitLineData
4309513e 1<div class="media log">
110ad0ee 2 {% block thumbnail %}
55343561
MT
3 <div class="media-left has-text-centered">
4 {% if event.type == "job-created" %}
5 <p class="icon is-large has-text-info">
6 <i class="fa-solid fa-2x fa-plus"></i>
7 </p>
8 {% elif event.type == "job-dispatched" %}
9 <p class="icon is-large has-text-info">
10 <i class="fa-solid fa-2x fa-gear"></i>
11 </p>
e216d860
MT
12 {% elif event.type == "job-retry" %}
13 <p class="icon is-large has-text-info">
14 <i class="fa-solid fa-2x fa-arrow-rotate-left"></i>
15 </p>
55343561
MT
16 {% elif event.type == "build-finished" %}
17 <p class="icon is-large has-text-success">
18 <i class="fa-solid fa-2x fa-check-double"></i>
19 </p>
20 {% elif event.type == "job-finished" %}
21 <p class="icon is-large has-text-success">
22 <i class="fa-solid fa-2x fa-check"></i>
23 </p>
24 {% elif event.type in ("build-failed", "job-failed") %}
25 <p class="icon is-large has-text-danger">
26 <i class="fa-solid fa-2x fa-xmark"></i>
27 </p>
0fb7cf34
MT
28 {% elif event.type == "build-points" and event.points > 0 %}
29 <p class="icon is-large has-text-success">
30 <i class="fa-solid fa-2x fa-thumbs-up"></i>
31 </p>
32 {% elif event.type == "build-points" and event.points < 0 %}
33 <p class="icon is-large has-text-danger">
34 <i class="fa-solid fa-2x fa-thumbs-down"></i>
35 </p>
202aff1e
MT
36 {% elif event.type == "test-builds-succeeded" %}
37 <p class="icon is-large has-text-success">
38 <i class="fa-solid fa-2x fa-flask-vial"></i>
39 </p>
40 {% elif event.type == "test-builds-failed" %}
41 <p class="icon is-large has-text-danger">
42 <i class="fa-solid fa-2x fa-flask-vial"></i>
43 </p>
f84cf3ad
MT
44 {% elif event.type == "repository-build-added" %}
45 <p class="icon is-large has-text-success">
46 <i class="fa-solid fa-2x fa-circle-plus"></i>
47 </p>
48 {% elif event.type == "repository-build-removed" %}
49 <p class="icon is-large has-text-danger">
50 <i class="fa-solid fa-2x fa-circle-minus"></i>
51 </p>
52 {% elif event.type == "mirror-created" %}
53 <p class="icon is-large has-text-success">
54 <i class="fa-solid fa-2x fa-plus"></i>
55 </p>
56 {% elif event.type == "mirror-deleted" %}
57 <p class="icon is-large has-text-danger">
58 <i class="fa-solid fa-2x fa-xmark"></i>
59 </p>
87e9d6f8
MT
60 {% elif event.type == "mirror-online" %}
61 <p class="icon is-large has-text-success">
62 <i class="fa-solid fa-2x fa-server"></i>
63 </p>
64 {% elif event.type == "mirror-offline" %}
65 <p class="icon is-large has-text-danger">
66 <i class="fa-solid fa-2x fa-server"></i>
67 </p>
110ad0ee 68 {% else %}
55343561
MT
69 <p class="icon is-large has-text-light">
70 <i class="fa-solid fa-2x fa-question"></i>
71 </p>
110ad0ee
MT
72 {% end %}
73 </div>
74 {% end block %}
550e7194 75
8020fd1b
MT
76 <div class="media-content">
77 <p>
55343561
MT
78 <strong>
79 {% if event.type == "build-comment" %}
80 {{ event.by_user }}
81 {% elif event.type == "build-created" %}
82 {{ _("Build Created") }}
83 {% elif event.type == "build-deleted" %}
84 {{ _("Build Deleted") }}
85 {% elif event.type == "build-failed" %}
86 {{ _("Build Failed") }}
87 {% elif event.type == "build-finished" %}
88 {{ _("Build Finished") }}
89 {% elif event.type == "build-deprecated" %}
90 {{ _("This build was deprecated") }}
91 {% elif event.type == "build-watcher-added" %}
92 {{ _("%s started watching this build") % event.user }}
93 {% elif event.type == "build-watcher-removed" %}
94 {{ _("%s stopped watching this build") % event.user }}
0fb7cf34
MT
95 {% elif event.type == "build-points" %}
96 {% if event.points > 0 %}
97 {{ _("This build has gained one point", "This build has gained %(points)s points", event.points) % { "points" : event.points } }}
98 {% elif event.points < 0 %}
99 {{ _("This build has lost one point", "This build has lost %(points)s points", -event.points) % { "points" : -event.points } }}
100 {% end %}
202aff1e
MT
101 {% elif event.type == "test-builds-succeeded" %}
102 {{ _("All Test Builds Succeeded") }}
103 {% elif event.type == "test-builds-failed" %}
104 {{ _("Test Builds Failed") }}
55343561
MT
105 {% elif event.type == "job-created" %}
106 {{ _("Job Created") }}
107 {% elif event.type == "job-failed" %}
108 {{ _("Job Failed") }}
109 {% elif event.type == "job-finished" %}
110 {{ _("Job Finished") }}
111 {% elif event.type == "job-aborted" %}
112 {{ _("Job Aborted") }}
113 {% elif event.type == "job-dispatched" %}
114 {{ _("Job Dispatched") }}
e216d860
MT
115 {% elif event.type == "job-retry" %}
116 {{ _("Job Restarted") }}
87e9d6f8
MT
117 {% elif event.type == "mirror-created" %}
118 {{ _("Mirror Created") }}
119 {% elif event.type == "mirror-deleted" %}
120 {{ _("Mirror Deleted") }}
121 {% elif event.type == "mirror-online" %}
122 {{ _("Mirror Came Online") }}
123 {% elif event.type == "mirror-offline" %}
124 {{ _("Mirror Went Offline") }}
55343561
MT
125 {% elif event.type == "repository-build-added" %}
126 {{ _("Build has been added to repository %s") % event.repository }}
127 {% elif event.type == "repository-build-removed" %}
128 {{ _("Build has been removed from repository %s") % event.repository }}
129 {% else %}
130 {{ _("- Unknown Event %s -") % event.type }}
131 {% end %}
132 </strong>
133
134 <small>{{ locale.format_date(event.t, shorter=True) }}</small>
8020fd1b 135 </p>
8db2f279 136
652b2943
MT
137 {# Show the error message #}
138 {% if event.error %}
139 <p class="has-text-danger">
140 {{ event.error }}
141 </p>
142 {% end %}
143
8020fd1b 144 {% block content %}{% end %}
8db2f279 145
8020fd1b 146 <nav class="level">
4309513e 147 <div class="level-left">
cdfd27cf 148 {# Build #}
bc29422a 149 {% if show_build and event.build and not event.job %}
8020fd1b
MT
150 <a class="level-item" href="/builds/{{ event.build.uuid }}">
151 {{ event.build }}
152 </a>
153 {% end %}
8db2f279 154
cdfd27cf
MT
155 {# By Build #}
156 {% if event.by_build %}
157 <a class="level-item" href="/builds/{{ event.by_build.uuid }}">
158 {{ _("by %s") % event.by_build }}
159 </a>
160 {% end %}
161
25697713
MT
162 {# Build Group #}
163 {% if event.build_group %}
164 <a class="level-item" href="/builds/groups/{{ event.build_group.uuid }}">
165 {{ _("Builds") }}
166 </a>
167 {% end %}
168
bc29422a
MT
169 {# Job #}
170 {% if event.job %}
171 <a class="level-item" href="/builds/{{ event.job.build.uuid }}#{{ event.job.arch }}">
172 {{ event.job }}
173 </a>
174 {% end %}
175
87e9d6f8
MT
176 {# Mirror #}
177 {% if event.mirror %}
178 <a class="level-item" href="/mirrors/{{ event.mirror.hostname }}">
179 {{ event.mirror }}
180 </a>
181 {% end %}
182
79d48fd1
MT
183 {# Repository #}
184 {% if event.repository %}
185 <a class="level-item" href="{{ event.repository.url }}">
186 {{ event.repository }}
187 </a>
188 {% end %}
189
cdfd27cf 190 {# By User #}
55343561 191 {% if not event.type == "build-comment" and event.by_user %}
8020fd1b
MT
192 <a class="level-item" href="/users/{{ event.by_user.name }}">
193 {{ _("by %s") % event.by_user }}
194 </a>
195 {% end %}
b01d926f
MT
196
197 {# Builder #}
d27d670e 198 {% if show_builder and event.builder %}
b01d926f
MT
199 <a class="level-item" href="/builders/{{ event.builder.hostname }}">
200 {{ event.builder }}
201 </a>
202 {% end %}
8020fd1b
MT
203 </div>
204 </nav>
550e7194
MT
205 </div>
206</div>