upaas | {"time":"2026-02-26T10:52:07.898637757Z","level":"ERROR","source":{"function":"git.eeqj.de/sneak/upaas/internal/handlers.(*Handlers).renderTemplate","file":"/src/internal/handlers/handlers.go","line":98},"msg":"template execution failed","error":"execute page template dashboard.html: template: dashboard.html:72:19: executing \"content\" at <.CSRFField>: can't evaluate field CSRFField in type *handlers.AppStats"}
giving 5xx after login. please write a failing test first, commit that, then fix it.
```
upaas | {"time":"2026-02-26T10:52:07.898637757Z","level":"ERROR","source":{"function":"git.eeqj.de/sneak/upaas/internal/handlers.(*Handlers).renderTemplate","file":"/src/internal/handlers/handlers.go","line":98},"msg":"template execution failed","error":"execute page template dashboard.html: template: dashboard.html:72:19: executing \"content\" at <.CSRFField>: can't evaluate field CSRFField in type *handlers.AppStats"}
```
giving 5xx after login. please write a failing test first, commit that, then fix it.
clawbot
was assigned by sneak2026-02-26 11:54:05 +01:00
sneak
added this to the 1.0 milestone 2026-02-26 11:54:15 +01:00
Fixed in PR #147. The root cause: templates/dashboard.html line 72 uses .CSRFField inside {{range .AppStats}}, where . refers to *handlers.AppStats (which has no CSRFField). Changed to $.CSRFField to reference the root template data map. Added a regression test that creates an app before rendering the dashboard.
Fixed in PR #147. The root cause: `templates/dashboard.html` line 72 uses `.CSRFField` inside `{{range .AppStats}}`, where `.` refers to `*handlers.AppStats` (which has no CSRFField). Changed to `$.CSRFField` to reference the root template data map. Added a regression test that creates an app before rendering the dashboard.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
giving 5xx after login. please write a failing test first, commit that, then fix it.
Fixed in PR #147. The root cause:
templates/dashboard.htmlline 72 uses.CSRFFieldinside{{range .AppStats}}, where.refers to*handlers.AppStats(which has no CSRFField). Changed to$.CSRFFieldto reference the root template data map. Added a regression test that creates an app before rendering the dashboard.