]>
Commit | Line | Data |
---|---|---|
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> | |
b6bc0ea5 MT |
36 | {% elif event.type == "build-bug-added" %} |
37 | <p class="icon is-large has-text-success"> | |
38 | <i class="fa-solid fa-2x fa-bug"></i> | |
39 | </p> | |
40 | {% elif event.type == "build-bug-removed" %} | |
41 | <p class="icon is-large has-text-danger"> | |
42 | <i class="fa-solid fa-2x fa-bug"></i> | |
43 | </p> | |
202aff1e MT |
44 | {% elif event.type == "test-builds-succeeded" %} |
45 | <p class="icon is-large has-text-success"> | |
46 | <i class="fa-solid fa-2x fa-flask-vial"></i> | |
47 | </p> | |
48 | {% elif event.type == "test-builds-failed" %} | |
49 | <p class="icon is-large has-text-danger"> | |
50 | <i class="fa-solid fa-2x fa-flask-vial"></i> | |
51 | </p> | |
f84cf3ad MT |
52 | {% elif event.type == "repository-build-added" %} |
53 | <p class="icon is-large has-text-success"> | |
54 | <i class="fa-solid fa-2x fa-circle-plus"></i> | |
55 | </p> | |
b23e184a MT |
56 | {% elif event.type == "repository-build-moved" %} |
57 | <p class="icon is-large has-text-success"> | |
58 | <i class="fa-solid fa-2x fa-circle-plus"></i> | |
59 | </p> | |
f84cf3ad MT |
60 | {% elif event.type == "repository-build-removed" %} |
61 | <p class="icon is-large has-text-danger"> | |
62 | <i class="fa-solid fa-2x fa-circle-minus"></i> | |
63 | </p> | |
240f26e0 MT |
64 | {% elif event.type == "builder-created" %} |
65 | <p class="icon is-large has-text-success"> | |
66 | <i class="fa-solid fa-2x fa-industry"></i> | |
67 | </p> | |
68 | {% elif event.type == "builder-deleted" %} | |
69 | <p class="icon is-large has-text-danger"> | |
70 | <i class="fa-solid fa-2x fa-industry"></i> | |
71 | </p> | |
f84cf3ad MT |
72 | {% elif event.type == "mirror-created" %} |
73 | <p class="icon is-large has-text-success"> | |
74 | <i class="fa-solid fa-2x fa-plus"></i> | |
75 | </p> | |
76 | {% elif event.type == "mirror-deleted" %} | |
77 | <p class="icon is-large has-text-danger"> | |
78 | <i class="fa-solid fa-2x fa-xmark"></i> | |
79 | </p> | |
87e9d6f8 MT |
80 | {% elif event.type == "mirror-online" %} |
81 | <p class="icon is-large has-text-success"> | |
82 | <i class="fa-solid fa-2x fa-server"></i> | |
83 | </p> | |
84 | {% elif event.type == "mirror-offline" %} | |
85 | <p class="icon is-large has-text-danger"> | |
86 | <i class="fa-solid fa-2x fa-server"></i> | |
87 | </p> | |
a5078154 MT |
88 | {% elif event.type == "release-monitoring-created" %} |
89 | <p class="icon is-large has-text-success"> | |
90 | <i class="fa-solid fa-2x fa-binoculars"></i> | |
91 | </p> | |
92 | {% elif event.type == "release-monitoring-deleted" %} | |
93 | <p class="icon is-large has-text-danger"> | |
94 | <i class="fa-solid fa-2x fa-binoculars"></i> | |
95 | </p> | |
6ccf95a7 MT |
96 | {% elif event.type == "release-created" %} |
97 | <p class="icon is-large has-text-success"> | |
98 | <i class="fa-solid fa-2x fa-box"></i> | |
99 | </p> | |
100 | {% elif event.type == "release-deleted" %} | |
101 | <p class="icon is-large has-text-danger"> | |
102 | <i class="fa-solid fa-2x fa-box"></i> | |
103 | </p> | |
93ceaa6e | 104 | {% elif event.type == "release-published" %} |
6ccf95a7 MT |
105 | <p class="icon is-large has-text-info"> |
106 | <i class="fa-solid fa-2x fa-cake-candles"></i> | |
107 | </p> | |
110ad0ee | 108 | {% else %} |
55343561 MT |
109 | <p class="icon is-large has-text-light"> |
110 | <i class="fa-solid fa-2x fa-question"></i> | |
111 | </p> | |
110ad0ee MT |
112 | {% end %} |
113 | </div> | |
114 | {% end block %} | |
550e7194 | 115 | |
8020fd1b MT |
116 | <div class="media-content"> |
117 | <p> | |
55343561 MT |
118 | <strong> |
119 | {% if event.type == "build-comment" %} | |
120 | {{ event.by_user }} | |
121 | {% elif event.type == "build-created" %} | |
122 | {{ _("Build Created") }} | |
123 | {% elif event.type == "build-deleted" %} | |
124 | {{ _("Build Deleted") }} | |
125 | {% elif event.type == "build-failed" %} | |
126 | {{ _("Build Failed") }} | |
127 | {% elif event.type == "build-finished" %} | |
128 | {{ _("Build Finished") }} | |
129 | {% elif event.type == "build-deprecated" %} | |
130 | {{ _("This build was deprecated") }} | |
131 | {% elif event.type == "build-watcher-added" %} | |
132 | {{ _("%s started watching this build") % event.user }} | |
133 | {% elif event.type == "build-watcher-removed" %} | |
134 | {{ _("%s stopped watching this build") % event.user }} | |
b6bc0ea5 MT |
135 | {% elif event.type == "build-bug-added" %} |
136 | {{ _("Bug #%s has been added") % event.bug }} | |
137 | {% elif event.type == "build-bug-removed" %} | |
138 | {{ _("Bug #%s has been removed") % event.bug }} | |
0fb7cf34 MT |
139 | {% elif event.type == "build-points" %} |
140 | {% if event.points > 0 %} | |
141 | {{ _("This build has gained one point", "This build has gained %(points)s points", event.points) % { "points" : event.points } }} | |
142 | {% elif event.points < 0 %} | |
143 | {{ _("This build has lost one point", "This build has lost %(points)s points", -event.points) % { "points" : -event.points } }} | |
144 | {% end %} | |
202aff1e MT |
145 | {% elif event.type == "test-builds-succeeded" %} |
146 | {{ _("All Test Builds Succeeded") }} | |
147 | {% elif event.type == "test-builds-failed" %} | |
148 | {{ _("Test Builds Failed") }} | |
55343561 MT |
149 | {% elif event.type == "job-created" %} |
150 | {{ _("Job Created") }} | |
151 | {% elif event.type == "job-failed" %} | |
152 | {{ _("Job Failed") }} | |
153 | {% elif event.type == "job-finished" %} | |
154 | {{ _("Job Finished") }} | |
155 | {% elif event.type == "job-aborted" %} | |
156 | {{ _("Job Aborted") }} | |
157 | {% elif event.type == "job-dispatched" %} | |
158 | {{ _("Job Dispatched") }} | |
e216d860 MT |
159 | {% elif event.type == "job-retry" %} |
160 | {{ _("Job Restarted") }} | |
240f26e0 MT |
161 | {% elif event.type == "builder-created" %} |
162 | {{ _("Builder Created") }} | |
163 | {% elif event.type == "builder-deleted" %} | |
164 | {{ _("Builder Deleted") }} | |
87e9d6f8 MT |
165 | {% elif event.type == "mirror-created" %} |
166 | {{ _("Mirror Created") }} | |
167 | {% elif event.type == "mirror-deleted" %} | |
168 | {{ _("Mirror Deleted") }} | |
169 | {% elif event.type == "mirror-online" %} | |
170 | {{ _("Mirror Came Online") }} | |
171 | {% elif event.type == "mirror-offline" %} | |
172 | {{ _("Mirror Went Offline") }} | |
55343561 MT |
173 | {% elif event.type == "repository-build-added" %} |
174 | {{ _("Build has been added to repository %s") % event.repository }} | |
b23e184a MT |
175 | {% elif event.type == "repository-build-moved" %} |
176 | {{ _("Build has been moved to repository %s") % event.repository }} | |
55343561 MT |
177 | {% elif event.type == "repository-build-removed" %} |
178 | {{ _("Build has been removed from repository %s") % event.repository }} | |
a5078154 MT |
179 | {% elif event.type == "release-monitoring-created" %} |
180 | {{ _("Release Monitoring has been enabled for %s") % event.package_name }} | |
181 | {% elif event.type == "release-monitoring-deleted" %} | |
182 | {{ _("Release Monitoring has been disabled for %s") % event.package_name }} | |
6ccf95a7 MT |
183 | {% elif event.type == "release-created" %} |
184 | {{ _("Release Created")}} | |
185 | {% elif event.type == "release-deleted" %} | |
186 | {{ _("Release Deleted") }} | |
93ceaa6e | 187 | {% elif event.type == "release-published" %} |
6ccf95a7 | 188 | {{ _("Release of %s") % event.release }} |
55343561 MT |
189 | {% else %} |
190 | {{ _("- Unknown Event %s -") % event.type }} | |
191 | {% end %} | |
192 | </strong> | |
193 | ||
194 | <small>{{ locale.format_date(event.t, shorter=True) }}</small> | |
8020fd1b | 195 | </p> |
8db2f279 | 196 | |
652b2943 MT |
197 | {# Show the error message #} |
198 | {% if event.error %} | |
199 | <p class="has-text-danger"> | |
200 | {{ event.error }} | |
201 | </p> | |
202 | {% end %} | |
203 | ||
8020fd1b | 204 | {% block content %}{% end %} |
8db2f279 | 205 | |
8020fd1b | 206 | <nav class="level"> |
4309513e | 207 | <div class="level-left"> |
cdfd27cf | 208 | {# Build #} |
bc29422a | 209 | {% if show_build and event.build and not event.job %} |
8020fd1b MT |
210 | <a class="level-item" href="/builds/{{ event.build.uuid }}"> |
211 | {{ event.build }} | |
212 | </a> | |
213 | {% end %} | |
8db2f279 | 214 | |
cdfd27cf MT |
215 | {# By Build #} |
216 | {% if event.by_build %} | |
217 | <a class="level-item" href="/builds/{{ event.by_build.uuid }}"> | |
218 | {{ _("by %s") % event.by_build }} | |
219 | </a> | |
220 | {% end %} | |
221 | ||
25697713 MT |
222 | {# Build Group #} |
223 | {% if event.build_group %} | |
224 | <a class="level-item" href="/builds/groups/{{ event.build_group.uuid }}"> | |
225 | {{ _("Builds") }} | |
226 | </a> | |
227 | {% end %} | |
228 | ||
bc29422a MT |
229 | {# Job #} |
230 | {% if event.job %} | |
231 | <a class="level-item" href="/builds/{{ event.job.build.uuid }}#{{ event.job.arch }}"> | |
232 | {{ event.job }} | |
233 | </a> | |
234 | {% end %} | |
235 | ||
a5078154 MT |
236 | {# Package Name #} |
237 | {% if event.package_name %} | |
238 | <a class="level-item" href="/packages/{{ event.package_name }}"> | |
239 | {{ event.package_name }} | |
240 | </a> | |
241 | {% end %} | |
242 | ||
87e9d6f8 MT |
243 | {# Mirror #} |
244 | {% if event.mirror %} | |
245 | <a class="level-item" href="/mirrors/{{ event.mirror.hostname }}"> | |
246 | {{ event.mirror }} | |
247 | </a> | |
248 | {% end %} | |
249 | ||
79d48fd1 MT |
250 | {# Repository #} |
251 | {% if event.repository %} | |
252 | <a class="level-item" href="{{ event.repository.url }}"> | |
253 | {{ event.repository }} | |
254 | </a> | |
255 | {% end %} | |
256 | ||
6ccf95a7 MT |
257 | {# Release #} |
258 | {% if event.release %} | |
259 | <a class="level-item" href="{{ event.release.url }}"> | |
260 | {{ event.release }} | |
261 | </a> | |
262 | {% end %} | |
263 | ||
cdfd27cf | 264 | {# By User #} |
55343561 | 265 | {% if not event.type == "build-comment" and event.by_user %} |
8020fd1b MT |
266 | <a class="level-item" href="/users/{{ event.by_user.name }}"> |
267 | {{ _("by %s") % event.by_user }} | |
268 | </a> | |
269 | {% end %} | |
b01d926f MT |
270 | |
271 | {# Builder #} | |
d27d670e | 272 | {% if show_builder and event.builder %} |
b01d926f MT |
273 | <a class="level-item" href="/builders/{{ event.builder.hostname }}"> |
274 | {{ event.builder }} | |
275 | </a> | |
276 | {% end %} | |
8020fd1b MT |
277 | </div> |
278 | </nav> | |
550e7194 MT |
279 | </div> |
280 | </div> |