pub fn retention_page(
before: Option<String>,
pruned: Option<i64>,
session: Option<AdminSession>,
return_to: ReturnTo,
pool: &State<DbPool>,
) -> Result<Template, AdminReject>Expand description
The data-retention screen (GET /admin/retention?<before>&<pruned>): snapshot stats; with
?before=YYYY-MM-DD, a dry-run count of how many snapshots that cutoff would prune (the
page then offers a confirmed delete). ?pruned=N flashes the result of a completed prune.
Signed-in admins only (unauthenticated → sign-in, returning here).