diff options
Diffstat (limited to 'templates/wormhole.html.template')
| -rw-r--r-- | templates/wormhole.html.template | 42 |
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}} |
