summaryrefslogtreecommitdiffstats
path: root/templates/builds.html
blob: 745f0e93ffd8eeffc947c3804e0f7846b423c620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends "base.html" %}
{% block content %}
<h1>Builds</h1>
<div id="builds">
{% 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 %}
</div>
{% 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 %}
{% endblock %}