circus/crates/server/templates/queue.html
NotAShelf 4597869213
fc-server: add 'reproduce build' section to build template
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2c9f6951e9b6014a32140216367693de6a6a6964
2026-02-08 22:23:26 +03:00

65 lines
1.8 KiB
HTML

{% extends "base.html" %}
{% block title %}Queue - FC CI{% endblock %}
{% block breadcrumbs %}
<nav class="breadcrumbs">
<a href="/">Home</a> <span class="sep">/</span>
<span class="current">Queue</span>
</nav>
{% endblock %}
{% block content %}
<h1>Build Queue</h1>
<h2>Running ({{ running_count }})</h2>
{% if running_builds.is_empty() %}
<div class="empty">
<div class="empty-title">No builds currently running</div>
<div class="empty-hint">Running builds will appear here when the queue runner picks them up.</div>
</div>
{% else %}
<div class="table-wrap">
<table>
<thead>
<tr><th>Job</th><th>System</th><th>Started</th><th>Elapsed</th><th>Builder</th></tr>
</thead>
<tbody>
{% for b in running_builds %}
<tr>
<td><a href="/build/{{ b.id }}">{{ b.job_name }}</a></td>
<td>{{ b.system }}</td>
<td>{{ b.started_at }}</td>
<td>{{ b.elapsed }}</td>
<td>{% match b.builder_name %}{% when Some with (name) %}{{ name }}{% when None %}local{% endmatch %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
<h2>Pending ({{ pending_count }})</h2>
{% if pending_builds.is_empty() %}
<div class="empty">
<div class="empty-title">No builds pending</div>
<div class="empty-hint">Pending builds appear after an evaluation discovers new derivations to build.</div>
</div>
{% else %}
<div class="table-wrap">
<table>
<thead>
<tr><th>#</th><th>Job</th><th>System</th><th>Priority</th><th>Created</th></tr>
</thead>
<tbody>
{% for b in pending_builds %}
<tr>
<td>{{ b.queue_pos }}</td>
<td><a href="/build/{{ b.id }}">{{ b.job_name }}</a></td>
<td>{{ b.system }}</td>
<td>{{ b.priority }}</td>
<td>{{ b.created_at }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% endblock %}