From a6b652985f40cf022d6c522415c36fad13bc663d Mon Sep 17 00:00:00 2001 From: aur-build Date: Wed, 18 Nov 2026 08:06:39 +0000 Subject: =?UTF-8?q?http:=20the=20review=20surface=20=E2=80=94=20server-ren?= =?UTF-8?q?dered,=20no=20JavaScript=20required=20(=C2=A712,=20=C2=A713)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tiny_http, thread-per-connection, askama templates. Every §13 surface is server-rendered HTML that works with scripts switched off: Inbox, review detail with the full panel set, Builds, Attention, Index, Subscriptions, Ops/audit, Settings. The parts that are easy to get wrong: - Handlers read through thread-local READ-ONLY connections. They cannot take the write lock even by accident, so a slow page render never blocks the build pipeline's writer. tests/http.rs asserts this by trying to write through a read connection and requiring failure. - Every POST requires a CSRF token derived from the session id. Logout drops the session, which invalidates every form still open in a browser. - Approve carries identity_hash AND diff_digest (§7.1a). If either has moved, the approval is refused with 409 and the page re-renders the review AS IT IS NOW — never a silent retarget onto the newer state. - Bulk approve refuses high-risk items unless each one is individually confirmed by id. Bulk is per-item, never 'approve everything forever'. - Reject requires a note; it is re-openable, not a deletion. - Optional password gate; anonymous visitors are redirected to /login. Also: the index page states the pacman conf snippet including 'SigLevel = Required DatabaseOptional', because a repo consumers ignore the signature is a repo that gets MITM'd. --- templates/attention.html | 35 +++++++++++++++++++++++++++++ templates/audit.html | 8 +++++++ templates/base.html | 52 ++++++++++++++++++++++++++++++++++++++++++++ templates/build.html | 17 +++++++++++++++ templates/builds.html | 22 +++++++++++++++++++ templates/dashboard.html | 21 ++++++++++++++++++ templates/error.html | 6 +++++ templates/login.html | 10 +++++++++ templates/package.html | 29 ++++++++++++++++++++++++ templates/packages.html | 11 ++++++++++ templates/review.html | 49 +++++++++++++++++++++++++++++++++++++++++ templates/reviews.html | 28 ++++++++++++++++++++++++ templates/settings.html | 7 ++++++ templates/subscriptions.html | 32 +++++++++++++++++++++++++++ 14 files changed, 327 insertions(+) create mode 100644 templates/attention.html create mode 100644 templates/audit.html create mode 100644 templates/base.html create mode 100644 templates/build.html create mode 100644 templates/builds.html create mode 100644 templates/dashboard.html create mode 100644 templates/error.html create mode 100644 templates/login.html create mode 100644 templates/package.html create mode 100644 templates/packages.html create mode 100644 templates/review.html create mode 100644 templates/reviews.html create mode 100644 templates/settings.html create mode 100644 templates/subscriptions.html (limited to 'templates') diff --git a/templates/attention.html b/templates/attention.html new file mode 100644 index 0000000..caa277f --- /dev/null +++ b/templates/attention.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} +{% block content %} +

Attention

+{% if empty %}

Nothing needs you.

{% endif %} +{% if !notices.is_empty() %}

Alerts

+ +{% for n in notices %} + + + +{% endfor %}
pkgbasekindseveritydetailsince
{{ n.pkgbase }}{{ n.kind }}{{ n.severity }}
{{ n.detail }}
{{ n.created_at }}
+ +
{% endif %} + +{% if !outdated.is_empty() %}

Outdated: a dependency we publish has a newer version

+ +{% for o in outdated %} + + +{% endfor %}
packagebuilt againstnow in the index
{{ o.pkgbase }}{{ o.built_with }}{{ o.now }}
+
{% endif %} + +{% if !missing.is_empty() %}

Missing: a dependency we no longer publish

+ +{% for m in missing %}{% endfor %}
packagemissing
{{ m.pkgbase }}{{ m.now }}
{% endif %} + +{% if !blocked.is_empty() %}

Blocked builds

+ +{% for b in blocked %} +{% endfor %}
buildpkgbasewaiting on
{{ b.id_short }}{{ b.pkgbase }}{% for d in b.blocked_on %}{{ d }} {% endfor %}
{% endif %} + +{% if !downgrades.is_empty() %}

Downgrades in the index

+ +{% for d in downgrades %}{% endfor %}
packageservingAUR offers
{{ d.pkgbase }}{{ d.built_with }}{{ d.now }}
{% endif %} +{% endblock %} diff --git a/templates/audit.html b/templates/audit.html new file mode 100644 index 0000000..f47030e --- /dev/null +++ b/templates/audit.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} +

Ops

+

Append-only: the audit table rejects UPDATE and DELETE at the schema level (I10).

+ +{% for a in rows %} +{% endfor %}
whenactoractionentitydetail
{{ a.at }}{{ a.actor_kind }}:{{ a.actor }}{{ a.action }}{{ a.entity }} {{ a.entity_id }}
{{ a.detail }}
+{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..d36f9cc --- /dev/null +++ b/templates/base.html @@ -0,0 +1,52 @@ + + + + + + +{{ page.title }} · aur-build + + + +
+
+{% if page.has_flash %}
{{ page.flash }}
{% endif %} +{% block content %}{% endblock %} +
+ + diff --git a/templates/build.html b/templates/build.html new file mode 100644 index 0000000..f1fc7cf --- /dev/null +++ b/templates/build.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block content %} +

Build {{ id_short }}

+

{{ pkgbase }} {{ version }} · {{ kind }} · {{ state }} +{% if error != "" %} · {{ error }}{% endif %}

+{% if !blocked_on.is_empty() %}
Blocked on: +{% for d in blocked_on %}{{ d }} {% endfor %}
{% endif %} + + +{% for s in steps %} + + +{% endfor %}
stepstatusattemptoutputerror
{{ s.step }}{{ s.status }}{{ s.attempt }}{{ s.digest }}{{ s.error }}
+

Log

+{% if log_truncated %}

(last {{ log_lines }} lines — full log)

{% endif %} +
{{ log }}
+{% endblock %} diff --git a/templates/builds.html b/templates/builds.html new file mode 100644 index 0000000..7f83239 --- /dev/null +++ b/templates/builds.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% block content %} +

Builds

+
+{% if rows.is_empty() %}

Nothing queued or running.

{% else %} + + +{% for b in rows %} + + + + + + +{% endfor %}
idpkgbaseversionkindstatesteplease
{{ b.id_short }}{{ b.pkgbase }}{{ b.version }}{{ b.kind }}{{ b.state }}{% if b.cancel %} cancel requested{% endif %}{{ b.step }}{{ b.lease }}
+
{% endif %} +
+{% if !recent.is_empty() %}

Recently finished

+ +{% for b in recent %} +{% endfor %}
idpkgbasestateerror
{{ b.id_short }}{{ b.pkgbase }}{{ b.state }}{{ b.error }}
{% endif %} +{% endblock %} diff --git a/templates/dashboard.html b/templates/dashboard.html new file mode 100644 index 0000000..6cca81e --- /dev/null +++ b/templates/dashboard.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% block content %} +

Dashboard

+
+ + + + + + +
Subscriptions{{ subscriptions }}
Packages in the index{{ index_count }}
Reviews pending{{ pending_reviews }}
Builds queued or running{{ running_builds }}
Needs attention{{ attention }}
+
+

Recent publishes

+{% if publishes.is_empty() %}

Nothing published yet.

{% else %} + +{% for r in publishes %} + + + +{% endfor %}
pkgbaseversionpublishedaur_commit
{{ r.name }}{{ r.version }}{{ r.published_at }}{{ r.aur_commit_short }}
{% endif %} +{% endblock %} diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..c9c7561 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% block content %} +

{{ status }}

+

{{ message }}

+{% if detail != "" %}
{{ detail }}
{% endif %} +{% endblock %} diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..f0eaa6a --- /dev/null +++ b/templates/login.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} +{% block content %} +

Sign in

+{% if error != "" %}
{{ error }}
{% endif %} +
+ +

+ +
+{% endblock %} diff --git a/templates/package.html b/templates/package.html new file mode 100644 index 0000000..ded5e1c --- /dev/null +++ b/templates/package.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% block content %} +

{{ name }}

+

{{ summary }}

+
+
+ +
+Rebuilds reuse the approved source identity and need no new approval (I6). +{% if can_withdraw %} +
+ +
{% endif %} +
+{% if !stale.is_empty() %}
Stale
{% endif %} +{% if !deps_in.is_empty() || !deps_out.is_empty() %}
+Depends on: {% for d in deps_in %}{{ d }} {% endfor %} +

Needed by: {% for d in deps_out %}{{ d }} {% endfor %}

{% endif %} +

Timeline

+ +{% for r in timeline %} + +{% endfor %}
versionstateaur_commitpublishedapproved by
{{ r.version }}{{ r.state }}{{ r.aur_commit_short }}{{ r.published_at }}{{ r.approver }}
+{% if !builds.is_empty() %}

Builds

+ +{% for b in builds %} +{% endfor %}
idkindstatestep
{{ b.id_short }}{{ b.kind }}{{ b.state }}{{ b.step }}
{% endif %} +{% endblock %} diff --git a/templates/packages.html b/templates/packages.html new file mode 100644 index 0000000..79b27cc --- /dev/null +++ b/templates/packages.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +

Index [{{ repo }}]

+

Exactly the set of accepted releases — one entry per pkgbase, nothing else (I8).

+{% if rows.is_empty() %}

The index is empty.

{% else %} + +{% for p in rows %} + +{% endfor %}
packageversionarchsizepublished
{{ p.name }}{{ p.version }}{{ p.arch }}{{ p.size }}{{ p.published_at }}
{% endif %} +
Consumer config
{{ snippet }}
+{% endblock %} 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 %} +

{{ c.pkgbase }} → {{ c.version }}

+

+ base: {% if has_base %}{{ base_version }}{% else %}nothing accepted yet{% endif %} + · aur_commit {{ c.aur_commit_short }} + cgit + · kind {{ c.kind }} + · revision {{ c.revision }} · risk {{ c.risk }} +

+{% if c.is_first %}
+First build of this package here. +

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.

+
{% endif %} +{% if !c.signals.is_empty() %}
Risk signals
+{% for s in c.signals %}{{ s }} {% endfor %}
{% endif %} +{% if !c.missing_deps.is_empty() %}
Missing dependencies +

The build will block until these are published: {% for d in c.missing_deps %}{{ d }} {% endfor %}

{% endif %} +{% if c.is_first %} +

Recipe

+
PKGBUILD
{{ recipe }}
+{% if has_srcinfo %}
.SRCINFO
{{ srcinfo }}
{% endif %} +
Sources, as resolved
{{ sources_resolved }}
+
Dependencies
{{ deps_resolved }}
+{% endif %} +{% for panel in panels %} +

{{ panel.title }}

+{% if panel.empty %}

{{ panel.empty_note }}

{% else %}
{{ panel.body }}
{% endif %} +{% endfor %} +
+
+ + + +

+ +Approving builds exactly what is displayed above; if it changed while you +were reading, this is refused with a 409 and re-rendered. +
+
+ + + +
+
+{% endblock %} diff --git a/templates/reviews.html b/templates/reviews.html new file mode 100644 index 0000000..65efe80 --- /dev/null +++ b/templates/reviews.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} +

Reviews

+

Sorted by risk, then age. Risk is advisory: nothing is auto-approved.

+{% if rows.is_empty() %}

Nothing here. That is the good state.

{% else %} +
+ + + +{% for r in rows %} + + + + + + + + +{% endfor %} +
pkgbaseversionkindrisksignalsage
{{ r.pkgbase }}{{ r.version }}{{ r.kind }}{% if r.revision > 1 %} rev{{ r.revision }}{% endif %}{{ r.risk }}{% for s in r.signals %}{{ s }} {% endfor %}{{ r.age }}review
+

+ + +High-risk items are refused in bulk unless confirmed individually. +

+
+{% endif %} +{% endblock %} diff --git a/templates/settings.html b/templates/settings.html new file mode 100644 index 0000000..650a453 --- /dev/null +++ b/templates/settings.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} +{% block content %} +

Settings

+ +{% for s in rows %}{% endfor %}
keyvalue
{{ s.key }}{{ s.value }}
+
Repo
{{ repo }}
+{% endblock %} diff --git a/templates/subscriptions.html b/templates/subscriptions.html new file mode 100644 index 0000000..5562dfb --- /dev/null +++ b/templates/subscriptions.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% block content %} +

Subscriptions

+{% if rows.is_empty() %}

Nothing subscribed.

{% else %} + + +{% for s in rows %} + + + + + + +{% endfor %}
pkgbasestatemaintainerlast checkednext checkpending
{{ s.name }}{{ s.state }}{% if s.has_error %} {{ s.last_error }}{% endif %}{{ s.maintainer }}{{ s.last_checked }}{{ s.next_check }}{{ s.pending }} +
+ +
+
+ +
+
{% endif %} +
+

Subscribe to a pkgbase

+
+ + + +
+

A new subscription produces a first introduction review, which is the most +careful review you will do for it.

+
+{% endblock %} -- cgit v1.2.3