summaryrefslogtreecommitdiffstats
path: root/templates/builds_table.html
blob: 76152f86e9ecb54826c20bbc1372b6190c185d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div id="builds" hx-get="/builds?fragment=1" hx-trigger="every 3s" hx-swap="outerHTML">
{% if rows.is_empty() %}<p class="mut">Nothing queued or running.</p>{% else %}
<table>
<tr><th>id</th><th>pkgbase</th><th>version</th><th>kind</th><th>state</th><th>step</th><th>lease</th><th></th></tr>
{% for b in rows %}<tr>
<td><a href="/builds/{{ b.id }}">{{ b.id_short }}</a></td>
<td><a href="/packages/{{ b.pkgbase }}">{{ b.pkgbase }}</a></td>
<td>{{ b.version }}</td><td>{{ b.kind }}</td>
<td>{{ b.state }}{% if b.cancel %} <span class="tag">cancel requested</span>{% endif %}</td>
<td class="mut">{{ b.step }}</td><td class="mut">{{ b.lease }}</td>
<td><form class="inline" method="post" action="/builds/{{ b.id }}/cancel">
<input type="hidden" name="csrf" value="{{ page.csrf }}"><button type="submit">cancel</button></form></td>
</tr>{% endfor %}</table>{% endif %}
{% if !recent.is_empty() %}<h2>Recently finished</h2>
<table><tr><th>id</th><th>pkgbase</th><th>version</th><th>kind</th><th>state</th><th>error</th></tr>
{% for b in recent %}<tr><td><a href="/builds/{{ b.id }}">{{ b.id_short }}</a></td>
<td><a href="/packages/{{ b.pkgbase }}">{{ b.pkgbase }}</a></td>
<td>{{ b.version }}</td><td>{{ b.kind }}</td><td>{{ b.state }}</td><td class="risk-high">{{ b.error }}</td></tr>{% endfor %}</table>{% endif %}
</div>