summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl/assets.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-09-13 12:56:08 +0200
committerBrian Picciano <mediocregopher@gmail.com>2022-09-13 12:56:08 +0200
commit4f01edb9230f58ff84b0dd892c931ec8ac9aad55 (patch)
tree9c1598a3f98203913ac2548883c02a81deb33dc7 /srv/src/http/tpl/assets.html
parent5485984e05aebde22819adebfbd5ad51475a6c21 (diff)
move src out of srv, clean up default.nix and Makefile
Diffstat (limited to 'srv/src/http/tpl/assets.html')
-rw-r--r--srv/src/http/tpl/assets.html57
1 files changed, 0 insertions, 57 deletions
diff --git a/srv/src/http/tpl/assets.html b/srv/src/http/tpl/assets.html
deleted file mode 100644
index f21717a..0000000
--- a/srv/src/http/tpl/assets.html
+++ /dev/null
@@ -1,57 +0,0 @@
-{{ define "body" }}
-
-<p>
- <a href="{{ BlogURL "admin" }}">Back to Admin</a>
-</p>
-
-<h1>Assets</h1>
-
-<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">
- <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>
-
-{{ if gt (len .Payload.IDs) 0 }}
-
-<h2>Existing Assets</h2>
-
-<table>
-
- {{ range .Payload.IDs }}
- <tr>
- <td><a href="{{ AssetURL . }}">{{ . }}</a></td>
- <td>
- <form
- action="{{ AssetURL . }}?method=delete"
- method="POST"
- style="margin-bottom: 0;"
- >
- <input type="submit" value="Delete" />
- </form>
- </td>
- </tr>
- {{ end }}
-
-</table>
-
-{{ end }}
-
-{{ end }}
-
-{{ template "base.html" . }}