From 93a8843e2e3391459fd333aef9e5c7617608c2b3 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 18 May 2024 15:55:59 +0200 Subject: Remove most rendering related querying from go http handlers --- src/http/tpl/post-assets-manage.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/http/tpl/post-assets-manage.html') diff --git a/src/http/tpl/post-assets-manage.html b/src/http/tpl/post-assets-manage.html index f21717a..a0b0da0 100644 --- a/src/http/tpl/post-assets-manage.html +++ b/src/http/tpl/post-assets-manage.html @@ -1,5 +1,7 @@ {{ define "body" }} +{{ $assetIDs := .GetPostAssetIDs }} +

Back to Admin

@@ -27,13 +29,13 @@ -{{ if gt (len .Payload.IDs) 0 }} +{{ if $assetIDs }}

Existing Assets

- {{ range .Payload.IDs }} + {{ range $assetIDs }}
{{ . }} -- cgit v1.2.3