aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-25 12:49:28 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-25 12:49:28 +0800
commit999bb7d65ecf61f59f8d54a60362307537e49030 (patch)
tree2f5d76e82d3b178b5dcb08182c8690534e446407 /templates
parentRemove unnecessary whitespace in branches template (diff)
downloadforge-999bb7d65ecf61f59f8d54a60362307537e49030.tar.gz
forge-999bb7d65ecf61f59f8d54a60362307537e49030.tar.zst
forge-999bb7d65ecf61f59f8d54a60362307537e49030.zip
Add 403 and 501 pages
Diffstat (limited to 'templates')
-rw-r--r--templates/403.tmpl25
-rw-r--r--templates/501.tmpl24
2 files changed, 49 insertions, 0 deletions
diff --git a/templates/403.tmpl b/templates/403.tmpl
new file mode 100644
index 0000000..62a2654
--- /dev/null
+++ b/templates/403.tmpl
@@ -0,0 +1,25 @@
+{{/*
+ SPDX-License-Identifier: AGPL-3.0-only
+ SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+*/}}
+{{- define "403" -}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{- template "head_common" . -}}
+ <title>403 Forbidden &ndash; {{ .global.forge_title }}</title>
+ </head>
+ <body class="403">
+ {{- template "header" . -}}
+ <div class="padding-wrapper complete-error-page">
+ <h1>403 Forbidden</h1>
+ <p>{{- .complete_error_msg -}}</p>
+ <hr />
+ <address>Lindenii Forge</address>
+ </div>
+ <footer>
+ {{- template "footer" . -}}
+ </footer>
+ </body>
+</html>
+{{- end -}}
diff --git a/templates/501.tmpl b/templates/501.tmpl
new file mode 100644
index 0000000..b49bc36
--- /dev/null
+++ b/templates/501.tmpl
@@ -0,0 +1,24 @@
+{{/*
+ SPDX-License-Identifier: AGPL-3.0-only
+ SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+*/}}
+{{- define "501" -}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{- template "head_common" . -}}
+ <title>501 Not Implemented &ndash; {{ .global.forge_title }}</title>
+ </head>
+ <body class="501">
+ {{- template "header" . -}}
+ <div class="padding-wrapper complete-error-page">
+ <h1>501 Not Implemented</h1>
+ <hr />
+ <address>Lindenii Forge</address>
+ </div>
+ <footer>
+ {{- template "footer" . -}}
+ </footer>
+ </body>
+</html>
+{{- end -}}