diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 15:55:59 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 15:55:59 +0200 |
commit | 93a8843e2e3391459fd333aef9e5c7617608c2b3 (patch) | |
tree | 2e5615cd22d1b39c7d5f870b88e3f29b5c24a223 /src/http/tpl/post-assets-manage.html | |
parent | 8d7e708d98a3a46ba3ba08f9c8deeb4838bb8ca5 (diff) |
Remove most rendering related querying from go http handlers
Diffstat (limited to 'src/http/tpl/post-assets-manage.html')
-rw-r--r-- | src/http/tpl/post-assets-manage.html | 6 |
1 files changed, 4 insertions, 2 deletions
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 }} + <p> <a href="{{ BlogURL "admin" }}">Back to Admin</a> </p> @@ -27,13 +29,13 @@ </div> </form> -{{ if gt (len .Payload.IDs) 0 }} +{{ if $assetIDs }} <h2>Existing Assets</h2> <table> - {{ range .Payload.IDs }} + {{ range $assetIDs }} <tr> <td><a href="{{ AssetURL . }}">{{ . }}</a></td> <td> |