hide rated hooks to anon

This commit is contained in:
Thibault Duplessis 2013-06-07 12:54:21 +02:00
parent 5250a53685
commit 8ed45cc6d5
3 changed files with 6 additions and 5 deletions

View file

@ -42,9 +42,8 @@ case class Hook(
"uid" -> uid,
"username" -> username,
"elo" -> elo,
"variant" -> realVariant.toString,
"variant" -> (realVariant.exotic option realVariant.toString),
"mode" -> realMode.toString,
"color" -> color,
"clock" -> clockOption ?? { c renderClock(c.limit, c.increment) },
"speed" -> chess.Speed(clockOption).id,
"emin" -> realEloRange.map(_.min),

View file

@ -2062,8 +2062,10 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
}
function addHook(hook) {
pool.push(hook);
drawHooks();
if (isRegistered || hook.mode != "Rated") {
pool.push(hook);
drawHooks();
}
}
function drawHooks() {

View file

@ -122,7 +122,7 @@ div.lichess_game_not_started {
div.lichess_overboard {
position: absolute;
z-index: 3;
z-index: 199;
width: 305px;
top: 214px;
left: 105px;