@(c: lila.challenge.Challenge, json: play.api.libs.json.JsObject)(implicit ctx: Context) @import lila.challenge.Challenge.Status @round.layout( title = challengeTitle(c), side = emptyHtml, openGraph = challengeOpenGraph(c).some, moreJs = js(c, json, false)) {
@userIdLink(c.challengerUserId)
@explanation(c) @c.initialFen.map { fen =>
@views.html.game.miniBoard(fen, color = (!c.finalColor).name) }
@c.status match { case Status.Created | Status.Offline => { @if(!c.mode.rated || ctx.isAuth) { @if(c.mode.rated && c.unlimited) {
@trans.bewareTheGameIsRatedButHasNoClock()
}
} else {

This game is rated
You must log in to join it.

} } case Status.Declined => {

Challenge declined

@trans.newOpponent()
} case Status.Accepted => {

Challenge accepted!

@trans.joinTheGame()
} case Status.Canceled => {

Challenge canceled.

@trans.newOpponent()
} }
}