diff --git a/app/game/Featured.scala b/app/game/Featured.scala
index 3d350a2fdf..a60c60cab2 100644
--- a/app/game/Featured.scala
+++ b/app/game/Featured.scala
@@ -20,7 +20,7 @@ final class Featured(
import Featured._
- def one: Future[Option[DbGame]] =
+ def one: Future[Option[DbGame]] =
actor ? GetOne mapTo manifest[Option[DbGame]]
private implicit val timeout = Timeout(2 seconds)
@@ -49,10 +49,9 @@ final class Featured(
private def valid(game: DbGame) = game.isBeingPlayed
- private def feature: Option[DbGame] =
- Featured.best(
- gameRepo.featuredCandidates.unsafePerformIO filter valid
- )
+ private def feature: Option[DbGame] = Featured best {
+ gameRepo.featuredCandidates.unsafePerformIO filter valid
+ }
}))
Akka.system.scheduler.schedule(5.seconds, 2.seconds, actor, GetOne)
diff --git a/app/views/game/infoBox.scala.html b/app/views/game/infoBox.scala.html
index 5468af360a..a5259d6dd6 100644
--- a/app/views/game/infoBox.scala.html
+++ b/app/views/game/infoBox.scala.html
@@ -10,18 +10,25 @@
@game.updatedAt.map(showDate)
}
+ @if(game.finishedOrAborted) {
+ @gameEndStatus(game),
+ @game.winner.map { winner =>
+ @winner.color.fold(trans.whiteIsVictorious(), trans.blackIsVictorious())
+ }
+
+ }
@List(opponent, player).map { p =>