Add judges codes
Some checks failed
CI / scan_ruby (push) Failing after 18s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 15s
CI / test (push) Failing after 45s

This commit is contained in:
sto
2025-11-20 16:59:30 +01:00
parent b43a801e3c
commit 94e725d20a
15 changed files with 184 additions and 113 deletions

View File

@@ -1,12 +1,22 @@
.row.mb-4 style="height: calc(100vh - 280px)"
.col.d-flex.flex-column style="height: 100%"
.d-flex.flex-column style="overflow-y: auto"
- for row in 0..((@contestants.length - 1) / 4)
.mt-4.d-flex.flex-row
- for col in 0..3
- if row * 4 + col < @contestants.length
.d-flex.flex-column.ms-5 style="align-items: center"
= @contestants[row * 4 + col].name
- if @contestants[row * 4 + col].qrcode.present?
.mt-1 style="width: 200px; height: 200px;"
= @contestants[row * 4 + col].qrcode.html_safe
- if @contest.code.present?
.row.mb-4 style="height: calc(100vh - 280px)"
.row
.col
.alert.alert-info
= t("contestants.generate_qrcodes.note")
.col.d-flex.flex-column style="height: 100%"
.d-flex.flex-column style="overflow-y: auto"
- for row in 0..((@contestants.length - 1) / 5)
.mt-4.d-flex.flex-row
- for col in 0..4
- if row * 5 + col < @contestants.length
.d-flex.flex-column.ms-5 style="align-items: center"
= @contestants[row * 5 + col].name
- if @contestants[row * 5 + col].qrcode.present?
.mt-1 style="width: 180px; height: 180px;"
= @contestants[row * 5 + col].qrcode.html_safe
- else
.row
.col
.alert.alert-warning
= t("contestants.generate_qrcodes.no_code_note")