Completions: notice when no puzzles defined
Some checks failed
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 13s
CI / test (push) Failing after 39s

This commit is contained in:
sto
2025-11-18 11:57:48 +01:00
parent 3dd153d587
commit bf127bb932
3 changed files with 63 additions and 55 deletions

View File

@@ -29,6 +29,12 @@
.row.mt-5
.col
h3 Completions
- if @contest.puzzles.length == 0
.row
.col
.alert.alert-warning
= t("contestants.edit.no_puzzles_note")
- else
.row
.col
.alert.alert-info

View File

@@ -217,6 +217,7 @@ en:
end_image: End image
notice: Participant updated
not_finished: Not yet finished
no_puzzles_note: No puzzles were added yet
offline_participation: Offline participation
start_image: Start image
title: Participant

View File

@@ -188,6 +188,7 @@ fr:
end_image: Image de fin
notice: Participant.e modifié.e
not_finished: Non terminé
no_puzzles_note: Aucun puzzle n'a été défini encore pour ce concours
offline_participation: Participation hors-ligne
start_image: Image de début
title: Participant.e