(refs #115)Small fix for views

This commit is contained in:
takezoe
2014-03-09 01:48:30 +09:00
parent 5e6c33df6c
commit 1043b13228
3 changed files with 18 additions and 37 deletions

View File

@@ -131,7 +131,7 @@ trait AccountControllerBase extends AccountManagementControllerBase {
get("/:userName/_edit")(oneselfOnly {
val userName = params("userName")
getAccountByUserName(userName).map(x => account.html.edit(Some(x), flash.get("info"))) getOrElse NotFound
getAccountByUserName(userName).map(x => account.html.edit(x, flash.get("info"))) getOrElse NotFound
})
post("/:userName/_edit", editForm)(oneselfOnly { form =>
@@ -174,7 +174,7 @@ trait AccountControllerBase extends AccountManagementControllerBase {
get("/:userName/_ssh")(oneselfOnly {
val userName = params("userName")
getAccountByUserName(userName).map { x =>
account.html.ssh(x, getPublicKeys(x.userName), flash.get("info"))
account.html.ssh(x, getPublicKeys(x.userName))
} getOrElse NotFound
})