crates/server: REST API routes; RBAC auth middleware; cookie sessions; dashboard
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5298a925bd9c11780e49d8b1c98eebd86a6a6964
This commit is contained in:
parent
44d1ee1d6b
commit
235d3d38a6
38 changed files with 6275 additions and 7 deletions
30
crates/server/templates/channels.html
Normal file
30
crates/server/templates/channels.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Channels - FC CI{% endblock %}
|
||||
{% block content %}
|
||||
<h1>Channels</h1>
|
||||
{% if channels.is_empty() %}
|
||||
<p class="empty">No channels configured.</p>
|
||||
{% else %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Name</th><th>Current Evaluation</th><th>Updated</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for c in channels %}
|
||||
<tr>
|
||||
<td>{{ c.name }}</td>
|
||||
<td>
|
||||
{% match c.current_evaluation_id %}
|
||||
{% when Some with (eval_id) %}
|
||||
<a href="/evaluation/{{ eval_id }}">{{ eval_id }}</a>
|
||||
{% when None %}
|
||||
-
|
||||
{% endmatch %}
|
||||
</td>
|
||||
<td>{{ c.updated_at.format("%Y-%m-%d %H:%M") }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue