diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 08:56:40 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 08:58:21 -0700 |
| commit | 735512086436dba4969107695ba7b93f09efce2e (patch) | |
| tree | 7bf014884a5d655d4477def39c9f794c9037b4fa /templates/login.html.template | |
| parent | Use /tmp/hole as the hole directory for local runs (diff) | |
| download | roseh.moe-735512086436dba4969107695ba7b93f09efce2e.tar.zst | |
Simplify the HTML templates by omitting end tags
Diffstat (limited to 'templates/login.html.template')
| -rw-r--r-- | templates/login.html.template | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/templates/login.html.template b/templates/login.html.template index ce46bd1..2b3d022 100644 --- a/templates/login.html.template +++ b/templates/login.html.template @@ -1,24 +1,20 @@ -{{define "head"}}<title>Login</title>{{end}} +<title>Login</title> -{{define "body" -}} - <section> - {{- if .Error}} - <p class="login-error"><img class="inline" src="/static/angry.webp">Incorrect password</p> - {{- end}} - <form class="password-form" method="post"> - <table> - <tr class="password-form-row"> - <td><label class="password-label" for="password">Enter password</label></td> - <td><input id="password" class="password" type="password" name="password" autofocus></td> - </tr> - <tr class="password-form-row"> - <td><label class="password-label" for="auth">Google authenticator code</label></td> - <td><input id="auth" class="password" name="auth"></td> - </tr> - <tr> - <td></td> - <td><input type="image" width="100" class="submit" src="/static/point.webp" alt="Submit"></td> - </table> - </form> - </section> +<section> +{{- if .Error}} + <p class="login-error"><img class="inline" src="/static/angry.webp">Incorrect password {{- end}} + <form class="password-form" method="post"> + <table> + <tr class="password-form-row"> + <td><label class="password-label" for="password">Enter password</label> + <td><input id="password" class="password" type="password" name="password" autofocus> + <tr class="password-form-row"> + <td><label class="password-label" for="auth">Google authenticator code</label> + <td><input id="auth" class="password" name="auth"> + <tr> + <td> + <td><input type="image" width="100" class="submit" src="/static/point.webp" alt="Submit"> + </table> + </form> +</section> |
