Skip to content
Snippets Groups Projects

template: simplify seat number display

Merged Reiter, Christoph requested to merge template-simplify-seat into fork
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
@@ -148,16 +148,14 @@ fun FlowContent.renderLocation(location: ClientLocation, configs: Map<String, St
div("small-pages-scaling-container") { // Scales content to 0.5
// Render the two pages as if they were full-size
for (seat in listOfNotNull(skippedSeat, if (skippedSeat < location.seatCount) skippedSeat + 1 else null)) {
val paddedSeat = seat.toString().padStart(location.seatCount.toString().length, '0')
renderQrCodePage("${location.name}", "#$paddedSeat", "${location.id}-$seat", configs, smallPage = true)
renderQrCodePage("${location.name}", seat.toString(), "${location.id}-$seat", configs, smallPage = true)
}
}
}
}
} else {
for (seat in 1..location.seatCount) {
val paddedSeat = seat.toString().padStart(location.seatCount.toString().length, '0')
renderQrCodePage("${location.name}", "#$paddedSeat", "${location.id}-$seat", configs, smallPage = false)
renderQrCodePage("${location.name}", seat.toString(), "${location.id}-$seat", configs, smallPage = false)
div("break") {}
}
}
Loading