From 4f687aab4d8e8b47c816728995e81ac18fd5f419 Mon Sep 17 00:00:00 2001 From: clawbot Date: Thu, 26 Feb 2026 02:55:53 -0800 Subject: [PATCH] fix: use $.CSRFField in dashboard template range loop (closes #146) Inside the {{range .AppStats}} block, the dot context is *AppStats, not the root template data. Use $ to access the root-level CSRFField added by addGlobals. --- templates/dashboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/dashboard.html b/templates/dashboard.html index bf96b60..ff66e1c 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -69,7 +69,7 @@ View Edit
- {{ .CSRFField }} + {{ $.CSRFField }}