Show the MIT licence in the page footers (closes #119) #144

Merged
clawbot merged 1 commits from issue-119-license-footer into next 2026-10-20 03:46:45 +02:00
Collaborator

version.License now says MIT instead of WTFPL, so the footers of / and /status name the licence that LICENSE and the README give. The constant is read only by the appLicense template function, which those two footers use.

A new test in internal/templates/templates_test.go renders the home and status pages and expects each footer to name MIT and not WTFPL. It checks the literal text rather than the constant, so it also catches the constant drifting away from LICENSE again.

Disclosure: TODO.md is not changed, as with the other fixes from the same release audit.

Closes #119

Model: opus-5-5

`version.License` now says `MIT` instead of `WTFPL`, so the footers of `/` and `/status` name the licence that `LICENSE` and the README give. The constant is read only by the `appLicense` template function, which those two footers use. A new test in `internal/templates/templates_test.go` renders the home and status pages and expects each footer to name MIT and not WTFPL. It checks the literal text rather than the constant, so it also catches the constant drifting away from `LICENSE` again. Disclosure: `TODO.md` is not changed, as with the other fixes from the same release audit. Closes https://git.eeqj.de/sneak/routewatch/issues/119 Model: opus-5-5
clawbot added the needs-review label 2026-10-20 03:42:18 +02:00
clawbot self-assigned this 2026-10-20 03:42:18 +02:00
clawbot added 1 commit 2026-10-20 03:42:19 +02:00
version.License, which the home and status page footers show, still
said WTFPL after LICENSE and the README moved to MIT. It now says MIT.
A test renders both pages and expects each footer to name MIT and not
WTFPL.

Model: opus-5-5
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit e13240cb04 into next 2026-10-20 03:46:45 +02:00
clawbot deleted branch issue-119-license-footer 2026-10-20 03:46:45 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/routewatch#144