package web type Me struct { Email string DisplayName string TOTP bool ActiveOrg string Orgs []Org TOTPMissing bool } type Org struct { ID string Name string Slug string IsOwner bool } templ consoleShell(p Page, me Me) { @Layout(p) {
uptimesebi if len(me.Orgs) > 1 { } else if len(me.Orgs) == 1 { { me.Orgs[0].Name } }
if me.TOTPMissing {

Deine Organisation verlangt Zwei-Faktor-Anmeldung. Jetzt einrichten

}
{ children... }
} } templ Dashboard(p Page, me Me) { @consoleShell(p, me) {

Monitore

Noch keine Monitore angelegt.

} } templ Security(p Page, me Me) { @consoleShell(p, me) {

Sicherheit

Zwei-Faktor (TOTP)

if me.TOTP {

● aktiv

@formError() @field("Passwort", "password", "password", "current-password", true) @field("Aktueller Code", "code", "text", "one-time-code", true) @submit("Deaktivieren")
} else {

● nicht eingerichtet

}
} }