64592988
web: show how fresh a beads view is
handleView now reads the head commit of the rendered ref onto the envelope (Head *browse.CommitInfo), and the beads and milestones headers carry a shared beadsHead partial: <branch> · last commit <relative> · <short hash>, the hash linking to the commit page and the exact stamp in the title. The read is decoration on top of an answer: a database with no commits, or a Log that fails, renders the page without the line rather than 500ing. The relative time is a new ago func rather than chrome's reltime — it is past-facing (clock skew reads as "just now", never "in 3 minutes") and reads a package clock a test can pin.
Eugene Blikh <bigbes@gmail.com> — 2026-08-13 05:26:47 UTC
Commit 64592988d4a8f20befc11c22ce871a5eaacbf440 —
view raw patch
Parent(s):
dcdc9790
| File | Status | + | − |
|---|---|---|---|
web/freshness_test.go
|
A | +207 | |
web/handlers_view.go
|
M | +19 | |
web/templates.go
|
M | +56 | |
web/templates/_partials.html
|
M | +20 | |
web/templates/beads.html
|
M | +8 | |
web/templates/milestones.html
|
M | +7 | |
web/web_test.go
|
M | +7 | -1 |