aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.net>2025-07-17 22:36:19 +0100
committerLeonardo Bishop <me@leonardobishop.net>2025-07-17 22:36:19 +0100
commite1f6b6b8f3465b4819364efc497fea6d9ddad67e (patch)
tree47bfd55b69d7d2668e7193fbef2c4e7badd1fb1d /pkg/html
parent4b58544300847e5faf19be5baa4eb177a86b2b0f (diff)
Implement disabled flag
Diffstat (limited to 'pkg/html')
-rw-r--r--pkg/html/status.go (renamed from pkg/html/notfound.go)8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/html/notfound.go b/pkg/html/status.go
index ceb521f..569a236 100644
--- a/pkg/html/notfound.go
+++ b/pkg/html/status.go
@@ -23,3 +23,11 @@ func NotFoundSitePage(host string) Node {
P(Text(fmt.Sprintf("The site %s is unknown", host))),
)
}
+
+func ForbiddenDisabledPage(host string) Node {
+ return Page("Forbidden",
+ H1(Text("Forbidden")),
+
+ P(Text(fmt.Sprintf("Site %s is disabled", host))),
+ )
+}