diff options
Diffstat (limited to 'templates/admin/user')
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/list.tmpl | 10 | ||||
-rw-r--r-- | templates/admin/user/new.tmpl | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index e88126706e..e9ed7836bd 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="/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="{{AppRootSubUrl}}/admin/users/{{.User.Id}}" method="post" data-delete-url="/admin/users/{{.User.Id}}/delete"> {{.CsrfTokenHtml}} <div class="field"> <label class="req">{{.i18n.Tr "admin.users.auth_source"}}</label> diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 51e6604fac..f85bb6c0da 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -13,7 +13,7 @@ <strong>{{.i18n.Tr "admin.users.user_manage_panel"}}</strong> </div> <div class="panel-body admin-panel"> - <a class="btn-blue btn-medium btn-link btn-radius" href="/admin/users/new">{{.i18n.Tr "admin.users.new_account"}}</a> + <a class="btn-blue btn-medium btn-link btn-radius" href="{{AppRootSubUrl}}/admin/users/new">{{.i18n.Tr "admin.users.new_account"}}</a> <div class="admin-table"> <table class="table table-striped"> <thead> @@ -32,21 +32,21 @@ {{range .Users}} <tr> <td>{{.Id}}</td> - <td><a href="/user/{{.Name}}">{{.Name}}</a></td> + <td><a href="{{AppRootSubUrl}}/user/{{.Name}}">{{.Name}}</a></td> <td>{{.Email}}</td> <td><i class="fa fa{{if .IsActive}}-check{{end}}-square-o"></i></td> <td><i class="fa fa{{if .IsAdmin}}-check{{end}}-square-o"></i></td> <td>{{.NumRepos}}</td> <td>{{DateFormat .Created "M d, Y"}}</td> - <td><a href="/admin/users/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td> + <td><a href="{{AppRootSubUrl}}/admin/users/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td> </tr> {{end}} </tbody> </table> {{if or .LastPageNum .NextPageNum}} <ul class="pagination"> - {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="/admin/users?p={{.LastPageNum}}">« Prev.</a></li>{{end}} - {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="/admin/users?p={{.NextPageNum}}">» Next</a></li>{{end}} + {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppRootSubUrl}}/admin/users?p={{.LastPageNum}}">« Prev.</a></li>{{end}} + {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppRootSubUrl}}/admin/users?p={{.NextPageNum}}">» Next</a></li>{{end}} </ul> {{end}} </div> diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl index 0c4ad603ac..db842c6877 100644 --- a/templates/admin/user/new.tmpl +++ b/templates/admin/user/new.tmpl @@ -12,7 +12,7 @@ <div class="panel-header"> <strong>{{.i18n.Tr "admin.users.new_account"}}</strong> </div> - <form class="form form-align panel-body" id="repo-setting-form" action="/admin/users/new" method="post"> + <form class="form form-align panel-body" id="repo-setting-form" action="{{AppRootSubUrl}}/admin/users/new" method="post"> {{.CsrfTokenHtml}} <div class="field"> <label class="req">{{.i18n.Tr "admin.users.auth_source"}}</label> |