Fix template file names.

This commit is contained in:
takezoe
2013-07-01 13:07:02 +09:00
parent 8e45a8d3dd
commit 1b13ca1c8d
17 changed files with 27 additions and 27 deletions

View File

@@ -34,13 +34,13 @@ trait AccountControllerBase extends ControllerBase {
get("/:userName") {
val userName = params("userName")
getAccountByUserName(userName).map {
account.html.userinfo(_, getVisibleRepositories(userName, baseUrl, context.loginAccount.map(_.userName)))
account.html.info(_, getVisibleRepositories(userName, baseUrl, context.loginAccount.map(_.userName)))
} getOrElse NotFound
}
get("/:userName/_edit")(ownerOnly {
val userName = params("userName")
getAccountByUserName(userName).map(x => account.html.useredit(Some(x))) getOrElse NotFound
getAccountByUserName(userName).map(x => account.html.edit(Some(x))) getOrElse NotFound
})
post("/:userName/_edit", editForm)(ownerOnly { form =>
@@ -56,7 +56,7 @@ trait AccountControllerBase extends ControllerBase {
get("/register"){
if(loadSystemSettings().allowAccountRegistration){
account.html.useredit(None)
account.html.edit(None)
} else NotFound
}