@(playing: List[Pov], simul: Option[lila.simul.Simul])(implicit ctx: Context)

@simul.map { s => SIMUL @s.wins W/ @s.draws D/ @s.losses L/ @s.ongoing ongoing }.getOrElse { @trans.currentGames() } @defining("round-toggle-autoswitch") { id => }

@defining(playing.partition(_.isMyTurn)) { case (myTurn, otherTurn) => { @defining(myTurn ++ otherTurn.take(6 - myTurn.size)) { povs => @povs.take(9).map { pov => @gameFen(pov, withLink = false, withTitle = false, withLive = false) @playerText(pov.opponent, withRating = false) @if(pov.isMyTurn) { @pov.remainingSeconds.fold(trans.yourTurn())(secondsFromNow(_, true)) } else { } } } } }