diff options
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> |