diff options
Diffstat (limited to 'cmd/mirumd/templates/index.html')
| -rw-r--r-- | cmd/mirumd/templates/index.html | 16 | +16 −0 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/mirumd/templates/index.html b/cmd/mirumd/templates/index.html new file mode 100644 --- /dev/null +++ b/cmd/mirumd/templates/index.html @@ -0,0 +1,16 @@ +{{/* Copyright (c) 2026 Nikolay Govorov */}} +{{/* SPDX-License-Identifier: AGPL-3.0-or-later */}} +{{define "title"}}Home{{end}} +{{define "content"}} +<h1>Mirum</h1> +{{if .Email}} +<p>Logged in as {{.Email}}</p> +<form method="POST" action="/auth/logout"> +<input type="hidden" name="csrf" value="{{.CSRF}}"> +<button type="submit">Logout</button> +</form> +{{else}} +<p>CI server is running.</p> +<p><a href="/auth/login">Login</a></p> +{{end}} +{{end}} |
