diff --git a/app/controllers/User.scala b/app/controllers/User.scala index ad59c91f41..e208010026 100644 --- a/app/controllers/User.scala +++ b/app/controllers/User.scala @@ -40,7 +40,7 @@ object User extends LilaController { def showMini(username: String) = Open { implicit ctx => OptionFuResult(UserRepo named username) { user => - GameRepo lastPlayedPlaying user zip + if (user.enabled) GameRepo lastPlayedPlaying user zip (ctx.userId ?? { relationApi.fetchBlocks(user.id, _) }) zip (ctx.userId ?? { Env.game.crosstableApi(user.id, _) }) zip (ctx.isAuth ?? { Env.pref.api.followable(user.id) }) zip @@ -59,6 +59,7 @@ object User extends LilaController { ))) }) } + else fuccess(Ok(html.user.miniClosed(user))) } } diff --git a/app/views/user/miniClosed.scala.html b/app/views/user/miniClosed.scala.html new file mode 100644 index 0000000000..cf9e082d97 --- /dev/null +++ b/app/views/user/miniClosed.scala.html @@ -0,0 +1,3 @@ +@(u: User)(implicit ctx: Context) +
@userLink(u, withPowerTip = false)
+
@trans.thisAccountIsClosed()