summaryrefslogtreecommitdiffstats
path: root/templates/wormhole.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-08-15 08:38:43 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-08-15 08:38:43 -0700
commitb522360a74a7d32fec85e8ae4ac4ba9a279b7a4c (patch)
tree1b3960d0d9ff035dfa815b4b3d3258558d34cf9b /templates/wormhole.html.template
parentf6356df0131adb8098ff1fd5e8578707aa1af06b (diff)
downloadroseh.moe-b522360a74a7d32fec85e8ae4ac4ba9a279b7a4c.tar.zst
Fix html formatting
...finally
Diffstat (limited to 'templates/wormhole.html.template')
-rw-r--r--templates/wormhole.html.template42
1 files changed, 22 insertions, 20 deletions
diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template
index 6f7ad1b..9c770c1 100644
--- a/templates/wormhole.html.template
+++ b/templates/wormhole.html.template
@@ -1,21 +1,23 @@
-{{define "head"}}
- <title>Wormhole</title>
-{{end}}
+{{define "head" -}}
+ <title>Wormhole</title>
+{{- end}}
-<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>
+{{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}}