closed account powertip
This commit is contained in:
parent
9563d23cc9
commit
aee28d33b2
|
@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
3
app/views/user/miniClosed.scala.html
Normal file
3
app/views/user/miniClosed.scala.html
Normal 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>
|
Loading…
Reference in a new issue