From 323135b97b219d7fb10557fb9d9156c6bef3ae62 Mon Sep 17 00:00:00 2001 From: CaiCandong <50507092+CaiCandong@users.noreply.github.com> Date: Mon, 18 Sep 2023 20:08:09 +0800 Subject: [PATCH] Fix the incorrect route path in the user edit page. (#27007) Regression of #26713 After #26713 , the base path of user edit has been changed to `/admin/users/{userid}/edit` ## Before https://github.com/go-gitea/gitea/assets/50507092/5f4a3f64-fe2b-4499-b110-e01c9d87ea19 --- templates/admin/user/edit.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index e99a4532d..f7b70d8af 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -4,7 +4,7 @@ {{.locale.Tr "admin.users.edit_account"}}
-
+ {{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
@@ -157,7 +157,7 @@ {{.locale.Tr "settings.avatar"}}
- + {{.CsrfTokenHtml}} {{if not .DisableGravatar}}
@@ -186,7 +186,7 @@
- +
@@ -197,7 +197,7 @@ {{svg "octicon-trash"}} {{.locale.Tr "settings.delete_account_title"}}
-
+

{{.locale.Tr "settings.delete_account_desc"}}

{{$.CsrfTokenHtml}}