package web import ( "strconv" "git.zb-server.de/ZB-Server/uptimesebi/internal/i18n" ) // PageRow is a status page in the list. type PageRow struct { ID string Title string Slug string Published bool URL string Domain string } // PagesView is the data of the status page list. type PagesView struct { Pages []PageRow CanWrite bool } templ StatusPagesPage(p Page, me Me, v PagesView) { @consoleShell(p, me) { @settingsHeading("pages.title", "pages.intro") if len(v.Pages) > 0 {
← { i18n.T(ctx, "pages.title") }
{ i18n.T(ctx, "pages.groups_intro") }
if len(e.Groups) > 0 {● { i18n.T(ctx, "pages.domain_verified") }
{ i18n.T(ctx, "pages.domain_cname") }
} else {{ i18n.T(ctx, "pages.domain_instructions") }