mirror of https://github.com/go-gitea/gitea.git
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
This commit is contained in:
parent
9631958a82
commit
323135b97b
|
@ -4,7 +4,7 @@
|
||||||
{{.locale.Tr "admin.users.edit_account"}}
|
{{.locale.Tr "admin.users.edit_account"}}
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<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"}}
|
{{template "base/disable_form_autofill"}}
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<div class="field {{if .Err_UserName}}error{{end}}">
|
<div class="field {{if .Err_UserName}}error{{end}}">
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
{{.locale.Tr "settings.avatar"}}
|
{{.locale.Tr "settings.avatar"}}
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<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}}
|
{{.CsrfTokenHtml}}
|
||||||
{{if not .DisableGravatar}}
|
{{if not .DisableGravatar}}
|
||||||
<div class="inline field">
|
<div class="inline field">
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button>
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -197,7 +197,7 @@
|
||||||
{{svg "octicon-trash"}}
|
{{svg "octicon-trash"}}
|
||||||
{{.locale.Tr "settings.delete_account_title"}}
|
{{.locale.Tr "settings.delete_account_title"}}
|
||||||
</div>
|
</div>
|
||||||
<form class="ui form" method="post" action="{{.Link}}/delete">
|
<form class="ui form" method="post" action="./delete">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{{.locale.Tr "settings.delete_account_desc"}}</p>
|
<p>{{.locale.Tr "settings.delete_account_desc"}}</p>
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
|
|
Loading…
Reference in New Issue