Restrict offline participation to single-puzzle
Some checks failed
CI / scan_ruby (push) Failing after 17s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 14s
CI / test (push) Has been cancelled

contests
This commit is contained in:
sto
2025-11-07 09:30:04 +01:00
parent ae5082fff6
commit a1736ff076
7 changed files with 20 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ javascript:
- else
a.btn.btn-success.disabled
= t("contests.show.public_scoreboard_disabled")
- if @contest.offline_form
- if @contest.offline_form && @contest.puzzles.length < 2
a.ms-3.btn.btn-success href="/public/#{@contest.slug}/offline"
= t("contests.show.open_offline_form")
- else