diff --git a/src/main/scala/app/AccountController.scala b/src/main/scala/app/AccountController.scala index ee227cc..71197b6 100644 --- a/src/main/scala/app/AccountController.scala +++ b/src/main/scala/app/AccountController.scala @@ -131,7 +131,9 @@ get("/:userName/_edit")(oneselfOnly { val userName = params("userName") - getAccountByUserName(userName).map(x => account.html.edit(x, flash.get("info"))) getOrElse NotFound + getAccountByUserName(userName).map { x => + account.html.edit(x, loadSystemSettings(), flash.get("info")) + } getOrElse NotFound }) post("/:userName/_edit", editForm)(oneselfOnly { form => @@ -174,7 +176,7 @@ get("/:userName/_ssh")(oneselfOnly { val userName = params("userName") getAccountByUserName(userName).map { x => - account.html.ssh(x, getPublicKeys(x.userName)) + account.html.ssh(x, loadSystemSettings(), getPublicKeys(x.userName)) } getOrElse NotFound }) diff --git a/src/main/twirl/account/edit.scala.html b/src/main/twirl/account/edit.scala.html index 94b5f19..468e111 100644 --- a/src/main/twirl/account/edit.scala.html +++ b/src/main/twirl/account/edit.scala.html @@ -1,10 +1,10 @@ -@(account: model.Account, info: Option[Any])(implicit context: app.Context) +@(account: model.Account, settings: service.SystemSettingsService.SystemSettings, info: Option[Any])(implicit context: app.Context) @import context._ @import view.helpers._ @html.main("Edit your profile"){