diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-25 12:49:28 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-25 12:49:28 +0800 |
commit | 999bb7d65ecf61f59f8d54a60362307537e49030 (patch) | |
tree | 2f5d76e82d3b178b5dcb08182c8690534e446407 /templates | |
parent | Remove unnecessary whitespace in branches template (diff) | |
download | forge-999bb7d65ecf61f59f8d54a60362307537e49030.tar.gz forge-999bb7d65ecf61f59f8d54a60362307537e49030.tar.zst forge-999bb7d65ecf61f59f8d54a60362307537e49030.zip |
Add 403 and 501 pages
Diffstat (limited to 'templates')
-rw-r--r-- | templates/403.tmpl | 25 | ||||
-rw-r--r-- | templates/501.tmpl | 24 |
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 – {{ .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 – {{ .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 -}} |