summaryrefslogtreecommitdiffstats
path: root/templates/wormhole.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-09-08 08:56:40 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-09-08 08:58:21 -0700
commit735512086436dba4969107695ba7b93f09efce2e (patch)
tree7bf014884a5d655d4477def39c9f794c9037b4fa /templates/wormhole.html.template
parentUse /tmp/hole as the hole directory for local runs (diff)
downloadroseh.moe-735512086436dba4969107695ba7b93f09efce2e.tar.zst
Simplify the HTML templates by omitting end tags
Diffstat (limited to 'templates/wormhole.html.template')
-rw-r--r--templates/wormhole.html.template37
1 files changed, 15 insertions, 22 deletions
diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template
index 9c770c1..d277f4c 100644
--- a/templates/wormhole.html.template
+++ b/templates/wormhole.html.template
@@ -1,23 +1,16 @@
-{{define "head" -}}
- <title>Wormhole</title>
-{{- end}}
+<title>Wormhole</title>
-{{define "body" -}}
- <form
- method="post"
- enctype="multipart/form-data"
- class="wormhole">
- <ol>
- <li>
- <input type="file" name="file" multiple>
- </li>
- <li>
- <input type="submit" value="Upload" class="wormhole-input">
- {{- if .Err}}
- <p><img class="inline" src="/static/confused.webp" alt="A logical dragon maid"><span style="color:red">{{.Err}}</span></p>
- {{- end}}
- </li>
- </ol>
- Files will be deleted after 1 hour
- </form>
-{{- end}}
+<form
+ method="post"
+ enctype="multipart/form-data"
+ class="wormhole">
+ <ol>
+ <li> <input type="file" name="file" multiple>
+ <li>
+ <input type="submit" value="Upload" class="wormhole-input">
+ {{- if .Err}}
+ <p><img class="inline" src="/static/confused.webp" alt="A logical dragon maid"><span style="color:red">{{.Err}}</span>
+ {{- end}}
+ </ol>
+ Files will be deleted after 1 hour
+</form>