diff --git a/app/controllers/Round.scala b/app/controllers/Round.scala index 0929c80167..4c9ffefdfe 100644 --- a/app/controllers/Round.scala +++ b/app/controllers/Round.scala @@ -211,12 +211,12 @@ object Round extends LilaController with TheftPrevention { } private def sides(pov: Pov, isPlayer: Boolean)(implicit ctx: Context) = - (pov.game.tournamentId ?? TournamentRepo.byId) zip + myTour(pov.game.simulId) zip (pov.game.simulId ?? Env.simul.repo.find) zip GameRepo.initialFen(pov.game) zip Env.game.crosstableApi(pov.game) map { - case (((tour, simul), initialFen), crosstable) => - Ok(html.game.sides(pov, initialFen, tour, crosstable, withTourStanding = isPlayer, simul)) + case (((myTour, simul), initialFen), crosstable) => + Ok(html.game.sides(pov, initialFen, myTour, crosstable, withTourStanding = isPlayer, simul)) } def continue(id: String, mode: String) = Open { implicit ctx => diff --git a/app/views/game/sides.scala.html b/app/views/game/sides.scala.html index 4f80c8024b..f6161566ea 100644 --- a/app/views/game/sides.scala.html +++ b/app/views/game/sides.scala.html @@ -1,7 +1,7 @@ -@(pov: Pov, initialFen: Option[String], tour: Option[lila.tournament.Tournament], cross: Option[lila.game.Crosstable], withTourStanding: Boolean, simul: Option[lila.simul.Simul], userTv: Option[User] = None)(implicit ctx: Context) +@(pov: Pov, initialFen: Option[String], myTour: Option[lila.tournament.Tournament], cross: Option[lila.game.Crosstable], withTourStanding: Boolean, simul: Option[lila.simul.Simul], userTv: Option[User] = None)(implicit ctx: Context)