tweak leaderboards page
This commit is contained in:
parent
7fad4fcbb2
commit
fcc3898b62
|
@ -127,7 +127,7 @@ object User extends LilaController {
|
|||
UserRepo.byOrderedIds(pairs.map(_.userId)) map (_ zip pairs.map(_.nb))
|
||||
}
|
||||
tourneyWinners ← Env.tournament.winners scheduled nb
|
||||
online ← env.cached topOnline 30
|
||||
online ← env.cached topOnline 40
|
||||
} yield html.user.list(
|
||||
tourneyWinners = tourneyWinners,
|
||||
online = online,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
@userTopPerf(users: List[User], perfType: PerfType) = {
|
||||
<div class="user_top">
|
||||
<h2 data-icon="@perfType.iconChar"> @perfType.name</h2>
|
||||
<h2 class="text" data-icon="@perfType.iconChar">@perfType.name</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
@users.map { u =>
|
||||
|
@ -20,7 +20,7 @@
|
|||
|
||||
@userTopActive(users: List[(User, Int)], title: Any, icon: Option[Char] = None) = {
|
||||
<div class="user_top">
|
||||
<h2 @icon.map { i => data-icon="@i" }> @title</h2>
|
||||
<h2 class="text"@icon.map { i => data-icon="@i" }>@title</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
@users.map { u =>
|
||||
|
@ -64,7 +64,7 @@
|
|||
@userTopPerf(bullet, PerfType.Bullet)
|
||||
@userTopPerf(chess960, PerfType.Chess960)
|
||||
<div class="user_top">
|
||||
<h2 data-icon="g"> <a href="@routes.Tournament.home">Tournament winners</a></h2>
|
||||
<h2 class="text" data-icon="g">Tournament winners</h2>
|
||||
<table><tbody>
|
||||
@tourneyWinners.map { w =>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue