package web import ( "git.zb-server.de/ZB-Server/uptimesebi/internal/auth" "git.zb-server.de/ZB-Server/uptimesebi/internal/i18n" ) templ Login(p Page, signupAllowed bool, next string) { @authShell(p) {
{ i18n.T(ctx, "auth.verify.resend_link") }
if signupAllowed {{ i18n.T(ctx, "auth.login.no_account") } { i18n.T(ctx, "auth.login.to_signup") }
} } } templ Signup(p Page) { @authShell(p) {{ i18n.T(ctx, "auth.signup.to_login") }
} } templ SignupSent(p Page) { @authShell(p) {{ i18n.T(ctx, "auth.verify.sent") }
{ i18n.T(ctx, "auth.verify.sent_hint") }
{ i18n.T(ctx, "auth.verify.resend_link") }
} } // Verify confirms an address when the visitor presses the button. templ Verify(p Page, token string) { @authShell(p) { if token == "" {{ i18n.T(ctx, "error.verification_expired") }
{ i18n.T(ctx, "auth.verify.resend_link") }
} else {{ i18n.T(ctx, "auth.verify.resend_link") }
} } } templ ResendVerification(p Page) { @authShell(p) {{ i18n.T(ctx, "auth.signup.to_login") }
} } templ newOrgForm() { } // NewOrgPage creates an organization: the first, in a page of its own // since there is no console yet, or another one. templ NewOrgPage(p Page, me Me) { if len(me.Orgs) == 0 { @authShell(p) {{ i18n.T(ctx, "orgs.first_intro") }
@newOrgForm(){ i18n.T(ctx, "orgs.invited_hint") }
} } else { @consoleShell(p, me) { @settingsHeading("orgs.new_title", "orgs.new_intro")