init
All checks were successful
release-tag / release-image (push) Successful in 2m3s

This commit is contained in:
2026-05-04 22:25:50 +02:00
parent be81c2bf92
commit 270c13af5b
21 changed files with 1839 additions and 1 deletions

1
templates/users.html Normal file
View File

@@ -0,0 +1 @@
{{define "content"}}<h1>Benutzer</h1><section class="grid"><form method="post" class="card form"><h2>Benutzer anlegen</h2><label>Name<input name="display_name" required></label><label>E-Mail<input name="email" type="email" required></label><label>Rolle<select name="role"><option value="employee">Mitarbeiter</option><option value="admin">Admin</option></select></label><label>Initiales Passwort<input name="password" type="password" minlength="10" required></label><button>Anlegen</button></form><section class="card"><h2>Benutzerliste</h2><table><thead><tr><th>Name</th><th>E-Mail</th><th>Rolle</th><th>Erstellt</th></tr></thead><tbody>{{range .Users}}<tr><td><strong>{{.DisplayName}}</strong></td><td>{{.Email}}</td><td>{{.Role}}</td><td>{{.CreatedAt}}</td></tr>{{end}}</tbody></table></section></section><section class="card"><h2>Discord-Empfänger</h2><p class="muted">Diese Nutzer erhalten beim Erstellen eines Releases eine DM vom Bot.</p><table><thead><tr><th>Discord-Name</th><th>User-ID</th><th>Hinzugefügt</th></tr></thead><tbody>{{range .DiscordSubscribers}}<tr><td><strong>{{.Username}}</strong></td><td><code>{{.UserID}}</code></td><td>{{.CreatedAt}}</td></tr>{{else}}<tr><td colspan="3" class="muted">Noch keine Empfänger registriert.</td></tr>{{end}}</tbody></table></section>{{end}}{{template "base" .}}