blob: 65efe80ad587988cde0dfeebe1b64f86e55e8b9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{% extends "base.html" %}
{% block content %}
<h1>Reviews</h1>
<p class="mut">Sorted by risk, then age. Risk is advisory: nothing is auto-approved.</p>
{% if rows.is_empty() %}<p class="mut">Nothing here. That is the good state.</p>{% else %}
<form method="post" action="/reviews/bulk">
<input type="hidden" name="csrf" value="{{ page.csrf }}">
<table>
<tr><th></th><th>pkgbase</th><th>version</th><th>kind</th><th>risk</th><th>signals</th><th>age</th><th></th></tr>
{% for r in rows %}<tr>
<td><input type="checkbox" name="ids" value="{{ r.id }}"></td>
<td><a href="/reviews/{{ r.id }}">{{ r.pkgbase }}</a></td>
<td>{{ r.version }}</td>
<td>{{ r.kind }}{% if r.revision > 1 %} <span class="tag">rev{{ r.revision }}</span>{% endif %}</td>
<td class="risk-{{ r.risk }}">{{ r.risk }}</td>
<td class="mut">{% for s in r.signals %}<span class="tag">{{ s }}</span> {% endfor %}</td>
<td class="mut">{{ r.age }}</td>
<td><a href="/reviews/{{ r.id }}">review</a></td>
</tr>{% endfor %}
</table>
<p>
<button type="submit" name="decision" value="approve">Approve selected</button>
<button type="submit" name="decision" value="reject">Reject selected</button>
<span class="mut">High-risk items are refused in bulk unless confirmed individually.</span>
</p>
</form>
{% endif %}
{% endblock %}
|