@(page: CricketMatchPage)(implicit request: RequestHeader)
@defining(page.theMatch){ theMatch =>
@theMatch.lastInnings.map { innings =>
@if(!innings.closed) {
@theMatch.lastInnings match {
case Some(innings) => { @innings.description }
case _ => { @theMatch.description }
}
| Batsman |
Runs |
@theMatch.firstInBatsman match {
case Some(batsman) => {
| @batsman.name
@if(batsman.onStrike){*}
|
@batsman.runs
|
}
case _ => {}
}
@theMatch.secondInBatsman match {
case Some(batsman) => {
| @batsman.name
@if(batsman.onStrike){*}
|
@batsman.runs
|
}
case _ => {}
}
| InfoItem |
Description |
@theMatch.bowlerOnStrike match {
case Some(bowler) => {
|
Bowling:
|
@bowler.name
|
}
case _ => {}
}
@theMatch.lastOut match {
case Some(batsman) => {
| Last Out:
|
@batsman.name @batsman.runs
|
}
case _ => {}
}
}
}
}