closed account powertip

pull/2508/head
Thibault Duplessis 2016-11-07 23:16:58 +01:00
parent 9563d23cc9
commit aee28d33b2
2 changed files with 5 additions and 1 deletions

View File

@ -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)))
}
}

View File

@ -0,0 +1,3 @@
@(u: User)(implicit ctx: Context)
<div class="title">@userLink(u, withPowerTip = false)</div>
<div style="padding: 20px 8px; text-align: center">@trans.thisAccountIsClosed()</div>