fix King Of The Hill game previews
This commit is contained in:
parent
2cd0c200d5
commit
ee0e9a0656
|
@ -199,12 +199,14 @@ trait GameHelper { self: I18nHelper with UserHelper with AiHelper with StringHel
|
|||
val live = isLive ?? game.id
|
||||
val fen = Forsyth exportBoard game.toChess.board
|
||||
val lastMove = ~game.castleLastMoveTime.lastMoveString
|
||||
s"""<a href="$href" $title class="mini_board parse_fen $cssClass" data-live="$live" data-color="${color.name}" data-fen="$fen" data-lastmove="$lastMove">$miniBoardContent</a>"""
|
||||
val variant = game.variant.key
|
||||
s"""<a href="$href" $title class="mini_board parse_fen $cssClass $variant" data-live="$live" data-color="${color.name}" data-fen="$fen" data-lastmove="$lastMove">$miniBoardContent</a>"""
|
||||
}
|
||||
|
||||
def gameFenNoCtx(game: Game, color: Color, tv: Boolean = false, blank: Boolean = false) = Html {
|
||||
var isLive = game.isBeingPlayed
|
||||
s"""<a href="%s%s" title="%s" class="mini_board parse_fen %s" data-live="%s" data-color="%s" data-fen="%s" data-lastmove="%s"%s>$miniBoardContent</a>""".format(
|
||||
val variant = game.variant.key
|
||||
s"""<a href="%s%s" title="%s" class="mini_board parse_fen %s $variant" data-live="%s" data-color="%s" data-fen="%s" data-lastmove="%s"%s>$miniBoardContent</a>""".format(
|
||||
blank ?? netBaseUrl,
|
||||
tv.fold(routes.Tv.index, routes.Round.watcher(game.id, color.name)),
|
||||
gameTitle(game, color),
|
||||
|
|
|
@ -96,51 +96,51 @@ body.is2d.leather .cg-board,
|
|||
}
|
||||
/* KotH boards */
|
||||
|
||||
body.is2d.blue div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.blue .kingOfTheHill .cg-board,
|
||||
body.blue #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/blue.jpg);
|
||||
}
|
||||
body.is2d.blue2 div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.blue2 .kingOfTheHill .cg-board,
|
||||
body.blue2 #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/blue2.jpg);
|
||||
}
|
||||
body.is2d.wood2 div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.wood2 .kingOfTheHill .cg-board,
|
||||
body.wood2 #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/wood2.jpg);
|
||||
}
|
||||
body.is2d.marble div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.marble .kingOfTheHill .cg-board,
|
||||
body.marble #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/marble.jpg);
|
||||
}
|
||||
body.is2d.brown div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.brown .kingOfTheHill .cg-board,
|
||||
body.brown #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/brown.jpg);
|
||||
}
|
||||
body.is2d.green div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.green .kingOfTheHill .cg-board,
|
||||
body.green #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/green.jpg);
|
||||
}
|
||||
body.is2d.olive div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.olive .kingOfTheHill .cg-board,
|
||||
body.olive #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/olive.jpg);
|
||||
}
|
||||
body.is2d.purple div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.purple .kingOfTheHill .cg-board,
|
||||
body.purple #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/purple.jpg);
|
||||
}
|
||||
body.is2d.grey div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.grey .kingOfTheHill .cg-board,
|
||||
body.grey #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/grey.jpg);
|
||||
}
|
||||
body.is2d.wood div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.wood .kingOfTheHill .cg-board,
|
||||
body.wood #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/wood.jpg);
|
||||
}
|
||||
body.is2d.canvas div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.canvas .kingOfTheHill .cg-board,
|
||||
body.canvas #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/canvas.jpg);
|
||||
}
|
||||
body.is2d.leather div.lichess_board.kingOfTheHill .cg-board,
|
||||
body.is2d.leather .kingOfTheHill .cg-board,
|
||||
body.leather #GameBoard.kingOfTheHill {
|
||||
background-image: url(../images/board/koth/leather.jpg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue