Back to Frontend

AccessibleCrosswordContent.Scala

applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html

latest1.5 KB
Original Source

@crosswordMetaHeader(crosswordPage, gridVisible = false)

Puzzle description

Note: We've recently added solutions to this page below.

This page provides a text-only description of the puzzle:

  • 'Blanks' specifies the location of cells which separate the clues.
  • 'Across' and 'Down' list the clues in the format: "(starting square) clue text (answer length)".
  • Cells are specified via row number (top to bottom) and column letter (left to right).
  • Solutions are available via the 'Reveal solutions' button below.

Blanks

@accessibleCrosswordGridData(crosswordPage.blankSquares.rows)

Across

@accessibleCrosswordEntries(crosswordPage.crossword.acrossEntries)

Down

@accessibleCrosswordEntries(crosswordPage.crossword.downEntries)

Solutions

@if(crosswordPage.crossword.solutionAvailable) { Reveal solutions

Across solutions

Starting positionClueSolution
@for(entry <- crosswordPage.crossword.acrossEntries) {@entry.startPosition@Html(entry.clue)
}

Down solutions

Starting positionClueSolution
@for(entry <- crosswordPage.crossword.downEntries) {@entry.startPosition@Html(entry.clue)
}

} else {

Sorry, solutions are not available for this puzzle yet. @crosswordPage.crossword.dateSolutionAvailable.map(solutionDate => s" They should be available from ${GUDateTimeFormatNew.formatDateForDisplay(solutionDate, request)}.")

}