diff options
Diffstat (limited to 'templates/review.html')
| -rw-r--r-- | templates/review.html | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/review.html b/templates/review.html new file mode 100644 index 0000000..32441f9 --- /dev/null +++ b/templates/review.html @@ -0,0 +1,49 @@ +{% extends "base.html" %} +{% block content %} +<h1>{{ c.pkgbase }} → {{ c.version }}</h1> +<p class="mut"> + base: {% if has_base %}{{ base_version }}{% else %}<b>nothing accepted yet</b>{% endif %} + · aur_commit <span class="tag">{{ c.aur_commit_short }}</span> + <a href="https://aur.archlinux.org/cgit/aur.git/tree/?h={{ c.pkgbase }}&id={{ c.aur_commit }}">cgit</a> + · kind {{ c.kind }} + · revision {{ c.revision }} · risk <span class="risk-{{ c.risk }}">{{ c.risk }}</span> +</p> +{% if c.is_first %}<div class="card first"> +<b>First build of this package here.</b> +<p class="mut">There is no accepted version to diff against, so the whole recipe is shown below +and the maintainer and age of the package are the only trust signals available. This is the +most consequential approval this pkgbase will ever get: it establishes the base every later +diff is measured against.</p> +</div>{% endif %} +{% if !c.signals.is_empty() %}<div class="card"><b>Risk signals</b><br> +{% for s in c.signals %}<span class="tag risk-high">{{ s }}</span> {% endfor %}</div>{% endif %} +{% if !c.missing_deps.is_empty() %}<div class="card"><b>Missing dependencies</b> +<p>The build will block until these are published: {% for d in c.missing_deps %}<span class="tag">{{ d }}</span> {% endfor %}</p></div>{% endif %} +{% if c.is_first %} +<h2>Recipe</h2> +<div class="card"><b>PKGBUILD</b><pre>{{ recipe }}</pre></div> +{% if has_srcinfo %}<div class="card"><b>.SRCINFO</b><pre>{{ srcinfo }}</pre></div>{% endif %} +<div class="card"><b>Sources, as resolved</b><pre>{{ sources_resolved }}</pre></div> +<div class="card"><b>Dependencies</b><pre>{{ deps_resolved }}</pre></div> +{% endif %} +{% for panel in panels %} +<h2>{{ panel.title }}</h2> +{% if panel.empty %}<p class="mut">{{ panel.empty_note }}</p>{% else %}<pre>{{ panel.body }}</pre>{% endif %} +{% endfor %} +<div class="card"> +<form method="post" action="/reviews/{{ c.id }}/approve"> +<input type="hidden" name="csrf" value="{{ page.csrf }}"> +<input type="hidden" name="identity_hash" value="{{ c.identity_hash }}"> +<input type="hidden" name="diff_digest" value="{{ c.diff_digest }}"> +<p><label>Note (optional) <input name="note" size="60"></label></p> +<button type="submit">Approve and build</button> +<span class="mut">Approving builds exactly what is displayed above; if it changed while you +were reading, this is refused with a 409 and re-rendered.</span> +</form> +<form method="post" action="/reviews/{{ c.id }}/reject" style="margin-top:.6rem"> +<input type="hidden" name="csrf" value="{{ page.csrf }}"> +<label>Reject with reason <input name="note" size="60" required></label> +<button type="submit">Reject</button> +</form> +</div> +{% endblock %} |
