mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Fix template file names.
This commit is contained in:
@@ -29,11 +29,11 @@ trait UserManagementControllerBase extends ControllerBase { self: AccountService
|
|||||||
)(UserEditForm.apply)
|
)(UserEditForm.apply)
|
||||||
|
|
||||||
get("/admin/users")(adminOnly {
|
get("/admin/users")(adminOnly {
|
||||||
admin.html.userlist(getAllUsers())
|
admin.users.html.list(getAllUsers())
|
||||||
})
|
})
|
||||||
|
|
||||||
get("/admin/users/_new")(adminOnly {
|
get("/admin/users/_new")(adminOnly {
|
||||||
admin.html.useredit(None)
|
admin.users.html.edit(None)
|
||||||
})
|
})
|
||||||
|
|
||||||
post("/admin/users/_new", newForm)(adminOnly { form =>
|
post("/admin/users/_new", newForm)(adminOnly { form =>
|
||||||
@@ -43,7 +43,7 @@ trait UserManagementControllerBase extends ControllerBase { self: AccountService
|
|||||||
|
|
||||||
get("/admin/users/:userName/_edit")(adminOnly {
|
get("/admin/users/:userName/_edit")(adminOnly {
|
||||||
val userName = params("userName")
|
val userName = params("userName")
|
||||||
admin.html.useredit(getAccountByUserName(userName))
|
admin.users.html.edit(getAccountByUserName(userName))
|
||||||
})
|
})
|
||||||
|
|
||||||
post("/admin/users/:name/_edit", editForm)(adminOnly { form =>
|
post("/admin/users/:name/_edit", editForm)(adminOnly { form =>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@(account: Option[model.Account])(implicit context: app.Context)
|
@(account: Option[model.Account])(implicit context: app.Context)
|
||||||
@import context._
|
@import context._
|
||||||
@html.main(if(account.isEmpty) "New User" else "Update User"){
|
@html.main(if(account.isEmpty) "New User" else "Update User"){
|
||||||
@menu("users"){
|
@admin.html.menu("users"){
|
||||||
<form method="POST" action="@if(account.isEmpty){@path/admin/users/_new} else {@path/admin/users/@account.get.userName/_edit}" validate="true">
|
<form method="POST" action="@if(account.isEmpty){@path/admin/users/_new} else {@path/admin/users/@account.get.userName/_edit}" validate="true">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="userName"><strong>Username</strong></label>
|
<label for="userName"><strong>Username</strong></label>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
@import context._
|
@import context._
|
||||||
@import view.helpers._
|
@import view.helpers._
|
||||||
@html.main("Manage Users"){
|
@html.main("Manage Users"){
|
||||||
@menu("users"){
|
@admin.html.menu("users"){
|
||||||
<div style="text-align: right; margin-bottom: 4px;">
|
<div style="text-align: right; margin-bottom: 4px;">
|
||||||
<a href="@path/admin/users/_new" class="btn">New User</a>
|
<a href="@path/admin/users/_new" class="btn">New User</a>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user