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