diff options
author | CaiCandong <50507092+CaiCandong@users.noreply.github.com> | 2023-09-18 20:08:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 14:08:09 +0200 |
commit | 323135b97b219d7fb10557fb9d9156c6bef3ae62 (patch) | |
tree | 14bfbda957d76f06557d1718d43a58ab89940370 /templates/admin/user | |
parent | 9631958a82c70f30421fc4e292f700ec8881805e (diff) | |
download | gitea-323135b97b219d7fb10557fb9d9156c6bef3ae62.tar.gz gitea-323135b97b219d7fb10557fb9d9156c6bef3ae62.zip |
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
Diffstat (limited to 'templates/admin/user')
-rw-r--r-- | templates/admin/user/edit.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index e99a4532d3..f7b70d8aff 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -4,7 +4,7 @@ {{.locale.Tr "admin.users.edit_account"}} </h4> <div class="ui attached segment"> - <form class="ui form" action="{{.Link}}" method="post"> + <form class="ui form" action="./edit" method="post"> {{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}} <div class="field {{if .Err_UserName}}error{{end}}"> @@ -157,7 +157,7 @@ {{.locale.Tr "settings.avatar"}} </h4> <div class="ui attached segment"> - <form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data"> + <form class="ui form" action="./avatar" method="post" enctype="multipart/form-data"> {{.CsrfTokenHtml}} {{if not .DisableGravatar}} <div class="inline field"> @@ -186,7 +186,7 @@ <div class="field"> <button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button> - <button class="ui red button link-action" data-url="{{.Link}}/avatar/delete">{{$.locale.Tr "settings.delete_current_avatar"}}</button> + <button class="ui red button link-action" data-url="./avatar/delete">{{$.locale.Tr "settings.delete_current_avatar"}}</button> </div> </form> </div> @@ -197,7 +197,7 @@ {{svg "octicon-trash"}} {{.locale.Tr "settings.delete_account_title"}} </div> - <form class="ui form" method="post" action="{{.Link}}/delete"> + <form class="ui form" method="post" action="./delete"> <div class="content"> <p>{{.locale.Tr "settings.delete_account_desc"}}</p> {{$.CsrfTokenHtml}} |