From 24c66c5096560c78ead4e8f387fb8dee82a04277 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 22 Mar 2024 19:42:41 +0800 Subject: [PATCH] Fix manual merge form and 404 page templates (#30000) Partially backport #29985, fix some template errors. * fix the manual-merge form * fix the 404 page --- templates/repo/issue/view_content/pull.tmpl | 2 +- templates/status/404.tmpl | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index 409af3a5d5..128a4cc03c 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -360,7 +360,7 @@ {{if and $.StillCanManualMerge (not $showGeneralMergeForm)}}
-
+ {{.CsrfTokenHtml}}
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index 74bb8762bd..86aa7587ff 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -1,14 +1,10 @@ {{template "base/head" .}} -
+
{{if .IsRepo}}{{template "repo/header" .}}{{end}}
-

404

+ 404

{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404" | Safe}}{{end}}

{{if .NotFoundGoBackURL}}{{ctx.Locale.Tr "go_back"}}{{end}} - -
-
- {{if .ShowFooterVersion}}

{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}

{{end}}
{{template "base/footer" .}}