Show ages on the AS and prefix pages in words (closes #163) #171

Merged
clawbot merged 1 commits from issue-163-ages-in-words into next 2026-10-27 01:23:51 +01:00
1 Commits
Author SHA1 Message Date
sneak 86277bd82c Show ages on the AS and prefix pages in words (closes #163)
check / check (push) Waiting to run
The Age column printed Go's duration format for every plural age, such
as "5m0s ago" or "360h0m0s ago".

The templates now register humanize.Time from go-humanize, which the
server already uses, as the timeSince function, and the hand-written
function is gone. Ages read "5 minutes ago", "3 hours ago" or "2 weeks
ago". An age under a minute reads "now" or in seconds instead of "just
now". An age over a month reads in months or years instead of a date.

Model: opus-5-5
2026-10-27 00:15:38 +00:00