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