From 921524a42a17330ce87c93a65f1b3578bb6e0d19 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 29 Jan 2020 21:06:47 -0500 Subject: [PATCH] move scripting up so it's available on partially loaded pages --- views/honkpage.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/views/honkpage.html b/views/honkpage.html index 4f8aff6..e72b715 100644 --- a/views/honkpage.html +++ b/views/honkpage.html @@ -18,17 +18,6 @@ {{ end }} -
-
-{{ $BonkCSRF := .HonkCSRF }} -{{ $IsPreview := .IsPreview }} -{{ $MapLink := .MapLink }} -{{ range .Honks }} -{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }} -{{ end }} -
-
- {{ if .HonkCSRF }} {{ end }} +
+
+{{ $BonkCSRF := .HonkCSRF }} +{{ $IsPreview := .IsPreview }} +{{ $MapLink := .MapLink }} +{{ range .Honks }} +{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }} +{{ end }} +
+
+