Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I07f9de61588f61aae003f78c30fd6d326a6a6964
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Evaluations - FC CI{% endblock %}
|
|
{% block content %}
|
|
<h1>Evaluations</h1>
|
|
{% if evals.is_empty() %}
|
|
<div class="empty">
|
|
<div class="empty-title">No evaluations yet</div>
|
|
<div class="empty-hint">Evaluations will appear here once a jobset is evaluated.</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="table-wrap">
|
|
<table>
|
|
<thead>
|
|
<tr><th>Commit</th><th>Project</th><th>Jobset</th><th>Status</th><th>Time</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for e in evals %}
|
|
<tr>
|
|
<td><a href="/evaluation/{{ e.id }}">{{ e.commit_short }}</a></td>
|
|
<td>{{ e.project_name }}</td>
|
|
<td>{{ e.jobset_name }}</td>
|
|
<td><span class="badge badge-{{ e.status_class }}">{{ e.status_text }}</span></td>
|
|
<td>{{ e.time }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% if total_pages > 1 %}
|
|
<div class="pagination">
|
|
{% if has_prev %}
|
|
<a href="/evaluations?offset={{ prev_offset }}&limit={{ limit }}">« Previous</a>
|
|
{% endif %}
|
|
<span>Page {{ page }} of {{ total_pages }}</span>
|
|
{% if has_next %}
|
|
<a href="/evaluations?offset={{ next_offset }}&limit={{ limit }}">Next »</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|