diff options
author | Sternik <sternik@gmail.com> | 2015-03-13 17:01:42 +0100 |
---|---|---|
committer | Sternik <sternik@gmail.com> | 2015-03-13 20:17:20 +0100 |
commit | d0e34c57ccbc738bcfa28d35524d43ca47eeeeb4 (patch) | |
tree | f9b08dea7322ef752780a78e6e7ec1a2d7f4a3a8 /templates/admin | |
parent | b72e75e522dda88dcbf7b064b8af3c495deb0595 (diff) | |
download | gitea-d0e34c57ccbc738bcfa28d35524d43ca47eeeeb4.tar.gz gitea-d0e34c57ccbc738bcfa28d35524d43ca47eeeeb4.zip |
Fix for deleting user when gogs instalation is on http://hostname/gogs
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e1bbd23d03..70bee6b43a 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -12,7 +12,7 @@ <div class="panel-header"> <strong>{{.i18n.Tr "admin.auths.edit"}}</strong> </div> - <form class="form form-align panel-body" id="auth-setting-form" action="{{AppSubUrl}}/admin/auths/{{.Source.Id}}" data-delete-url="/admin/auths/{{.Source.Id}}/delete" method="post"> + <form class="form form-align panel-body" id="auth-setting-form" action="{{AppSubUrl}}/admin/auths/{{.Source.Id}}" data-delete-url="{{AppSubUrl}}/admin/auths/{{.Source.Id}}/delete" method="post"> {{.CsrfTokenHtml}} <input type="hidden" value="{{.Source.Id}}" name="id"/> {{$type := .Source.Type}} diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 317349935e..bdc0e3343f 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -12,7 +12,7 @@ <div class="panel-header"> <strong>{{.i18n.Tr "admin.users.edit_account"}}</strong> </div> - <form class="form form-align panel-body" id="user-profile-form" action="{{AppSubUrl}}/admin/users/{{.User.Id}}" method="post" data-delete-url="/admin/users/{{.User.Id}}/delete"> + <form class="form form-align panel-body" id="user-profile-form" action="{{AppSubUrl}}/admin/users/{{.User.Id}}" method="post" data-delete-url="{{AppSubUrl}}/admin/users/{{.User.Id}}/delete"> {{.CsrfTokenHtml}} <div class="field"> <label class="req">{{.i18n.Tr "admin.users.auth_source"}}</label> |