aboutsummaryrefslogtreecommitdiff
path: root/forged/templates/400.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-06 09:33:11 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-06 09:34:06 +0800
commitc9b4eee4c589b8b40c02d0c96f887ec991580a24 (patch)
tree0ab3f2a22e9c4ca430573559d5712a4a7a6903a3 /forged/templates/400.tmpl
parentMove the Go stuff to ./forged/ (diff)
downloadforge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.gz
forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.tar.zst
forge-c9b4eee4c589b8b40c02d0c96f887ec991580a24.zip
Restructure static/templates into forged
Diffstat (limited to 'forged/templates/400.tmpl')
-rw-r--r--forged/templates/400.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/forged/templates/400.tmpl b/forged/templates/400.tmpl
new file mode 100644
index 0000000..58ce768
--- /dev/null
+++ b/forged/templates/400.tmpl
@@ -0,0 +1,25 @@
+{{/*
+ SPDX-License-Identifier: AGPL-3.0-only
+ SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
+*/}}
+{{- define "400" -}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{- template "head_common" . -}}
+ <title>400 Bad Request &ndash; {{ .global.forge_title }}</title>
+ </head>
+ <body class="400">
+ {{- template "header" . -}}
+ <div class="padding-wrapper complete-error-page">
+ <h1>400 Bad Request</h1>
+ <p>{{- .complete_error_msg -}}</p>
+ <hr />
+ <address>Lindenii Forge</address>
+ </div>
+ <footer>
+ {{- template "footer" . -}}
+ </footer>
+ </body>
+</html>
+{{- end -}}