summaryrefslogtreecommitdiffstats
path: root/src/http/render.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-19 17:33:17 +0000
committeraur-build <aur-build@localhost>2026-11-19 17:33:17 +0000
commit4304b0f336ddba7b4ec6780795059ff2066d105b (patch)
tree10edea744a1c2bf3fc363b4dc7f64abac8b1a0d3 /src/http/render.rs
parente757979f1a2afdbe7146066345bb9acd19d3b151 (diff)
downloadaur-build-4304b0f336ddba7b4ec6780795059ff2066d105b.tar.gz
aur-build-4304b0f336ddba7b4ec6780795059ff2066d105b.zip
comments: keep only what the code cannot show
Stripped every comment that described what an item does, documented its arguments or fields, or cited the design docs (§n, I-n, m-n, decision n). 2247 comments down to 83. What survives: the section dividers that segment the large modules, the secret-handling warnings, the agent wire-frame directions, and the few notes without which the code they attach to reads as redundant, reorderable, or unsound.
Diffstat (limited to 'src/http/render.rs')
-rw-r--r--src/http/render.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/http/render.rs b/src/http/render.rs
index f049a25..f3e4669 100644
--- a/src/http/render.rs
+++ b/src/http/render.rs
@@ -1,7 +1,5 @@
use askama::Template;
-/// Everything the shared chrome needs. Embedded in each page context because
-/// askama inheritance passes the whole struct down.
#[derive(Debug, Clone)]
pub struct Page {
pub title: String,
@@ -19,7 +17,6 @@ pub struct Page {
pub nav_subscriptions: &'static str,
pub nav_audit: &'static str,
pub nav_settings: &'static str,
- /// True when a password gate is configured, so the chrome offers a logout.
pub gated: bool,
}
@@ -116,7 +113,6 @@ pub struct ReviewDetail {
pub base_version: String,
pub has_base: bool,
pub panels: Vec<Panel>,
- /// First introductions show the whole recipe instead of a diff (§7.1b).
pub recipe: String,
pub srcinfo: String,
pub has_srcinfo: bool,
@@ -134,8 +130,6 @@ pub struct ReviewHead {
pub risk: String,
pub signals: Vec<String>,
pub missing_deps: Vec<String>,
- /// §10.3: "approving this marks N packages stale" — the packages of ours
- /// whose own recipes name one of the packages this candidate produces.
pub dependents: Vec<String>,
pub revision: i64,
pub aur_commit: String,
@@ -196,9 +190,6 @@ pub struct Attention {
pub blocked: Vec<BlockedRow>,
}
-/// §8.4: an approval whose build failed. The index is still serving the older
-/// version and nothing about the package looks wrong from the outside, so this
-/// row exists to be impossible to miss.
#[derive(Debug, Clone)]
pub struct UnbuiltRow {
pub pkgbase: String,
@@ -221,7 +212,6 @@ pub struct NoticeRow {
#[derive(Debug, Clone)]
pub struct StaleRow {
pub pkgbase: String,
- /// The dependency that moved (or `aur` for a downgrade row).
pub dependency: String,
pub built_with: String,
pub now: String,
@@ -261,7 +251,6 @@ pub struct PackageDetail {
pub summary: String,
pub can_withdraw: bool,
pub stale: Vec<String>,
- /// "v2 approved, build failed, index still serving v1" (§8.4).
pub unbuilt: Vec<UnbuiltRow>,
pub deps_in: Vec<String>,
pub deps_out: Vec<String>,
@@ -287,7 +276,6 @@ pub struct Builds {
pub recent: Vec<BuildRow>,
}
-/// The same table on its own, for the htmx fragment refresh.
#[derive(Template)]
#[template(path = "builds_table.html")]
pub struct BuildsTable {
@@ -379,10 +367,6 @@ pub struct SettingRow {
pub value: String,
}
-/// Static assets. Two files, both vendored, both served from `include_bytes!`
-/// so the binary is self-contained and there is no install step and no bundler
-/// (§13). htmx is the only JavaScript this app ships; it is served precompressed
-/// because the budget that matters is what a browser actually downloads.
pub fn static_asset(name: &str, accept_gzip: bool) -> crate::http::Res {
use crate::http::Res;
match name {