diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-18 10:59:07 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-18 10:59:07 -0600 |
commit | 56530a8a66937194fb4e99af95bcea6bb0281f66 (patch) | |
tree | 9546829e36ac35a0daaed33d2f0ffc73fa85f4ad /srv/src/api/tpl/admin-assets.html | |
parent | 69de76cb32cfd638672d4d5846d0659bf102316f (diff) |
Implement asset deletion and fix redirect logic
Diffstat (limited to 'srv/src/api/tpl/admin-assets.html')
-rw-r--r-- | srv/src/api/tpl/admin-assets.html | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/srv/src/api/tpl/admin-assets.html b/srv/src/api/tpl/admin-assets.html deleted file mode 100644 index 036002e..0000000 --- a/srv/src/api/tpl/admin-assets.html +++ /dev/null @@ -1,42 +0,0 @@ -{{ define "body" }} - -<h2>Upload Asset</h2> - -<p> - If the given ID is the same as an existing asset's ID, then that asset will be - overwritten. -</p> - -<form action={{ BlogURL "assets" }} method="POST" enctype="multipart/form-data"> - {{ .CSRFFormInput }} - <div class="row"> - <div class="four columns"> - <input type="text" placeholder="Unique ID" name="id" /> - </div> - <div class="four columns"> - <input type="file" name="file" /><br/> - </div> - <div class="four columns"> - <input type="submit" value="Upload" /> - </div> - </div> -</form> - -<h2>Existing Assets</h2> - -<table> - - {{ range .Payload.IDs }} - <tr> - <td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td> - <td> - Delete (TODO) - </td> - </tr> - {{ end }} - -</table> - -{{ end }} - -{{ template "base.html" . }} |