uptimesebi
@languageSwitch(p.Languages)package web import "git.zb-server.de/ZB-Server/uptimesebi/internal/i18n" // Page carries what every rendered page needs besides its own content. type Page struct { TitleID string CSRF string Languages []string // ErrorID and NoticeID name catalog messages shown above the content, // typically after a redirect back from an SSO flow. ErrorID string NoticeID string // Legal links the platform's legal notice and privacy policy. Legal []LegalLink } templ Layout(p Page) {
if p.CSRF != "" { }uptimesebi
@languageSwitch(p.Languages){ i18n.T(ctx, p.ErrorID) }
} if p.NoticeID != "" {{ i18n.T(ctx, p.NoticeID) }
} } templ formError() { }