File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ func EditUser(ctx *context.Context) {
315
315
ctx .Data ["DisableMigrations" ] = setting .Repository .DisableMigrations
316
316
ctx .Data ["AllowedUserVisibilityModes" ] = setting .Service .AllowedUserVisibilityModesSlice .ToVisibleTypeSlice ()
317
317
ctx .Data ["DisableGravatar" ] = system_model .GetSettingWithCacheBool (ctx , system_model .KeyPictureDisableGravatar )
318
- ctx .Data ["Link " ] = "/admin/users/" + ctx .Params (":userid" )
318
+ ctx .Data ["BaseUrl " ] = "/admin/users/" + ctx .Params (":userid" )
319
319
prepareUserInfo (ctx )
320
320
if ctx .Written () {
321
321
return
Original file line number Diff line number Diff line change 157
157
{{.locale.Tr "settings.avatar"}}
158
158
</h4>
159
159
<div class="ui attached segment">
160
- <form class="ui form" action="{{.Link }}/avatar" method="post" enctype="multipart/form-data">
160
+ <form class="ui form" action="{{.BaseUrl }}/avatar" method="post" enctype="multipart/form-data">
161
161
{{.CsrfTokenHtml}}
162
162
{{if not .DisableGravatar}}
163
163
<div class="inline field">
186
186
187
187
<div class="field">
188
188
<button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button>
189
- <button class="ui red button link-action" data-url="{{.Link }}/avatar/delete">{{$.locale.Tr "settings.delete_current_avatar"}}</button>
189
+ <button class="ui red button link-action" data-url="{{.BaseUrl }}/avatar/delete">{{$.locale.Tr "settings.delete_current_avatar"}}</button>
190
190
</div>
191
191
</form>
192
192
</div>
197
197
{{svg "octicon-trash"}}
198
198
{{.locale.Tr "settings.delete_account_title"}}
199
199
</div>
200
- <form class="ui form" method="post" action="{{.Link }}/delete">
200
+ <form class="ui form" method="post" action="{{.BaseUrl }}/delete">
201
201
<div class="content">
202
202
<p>{{.locale.Tr "settings.delete_account_desc"}}</p>
203
203
{{$.CsrfTokenHtml}}
You can’t perform that action at this time.
0 commit comments