Offline participation: already submitted page
All checks were successful
CI / scan_ruby (push) Successful in 17s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 14s
CI / test (push) Successful in 40s

This commit is contained in:
sto
2025-11-03 11:35:00 +01:00
parent 8d50c14a7b
commit d62b46b7df
4 changed files with 8 additions and 0 deletions

View File

@@ -124,6 +124,10 @@ class ContestsController < ApplicationController
if !@offline
not_found and return
end
if @offline.images.length > 1
render :offline_already_submitted and return
end
end
def offline_update

View File

@@ -0,0 +1,2 @@
.mt-3
= t("offlines.form.already_submitted")

View File

@@ -246,6 +246,7 @@ en:
log_out: Log out
offlines:
form:
already_submitted: You have already completed the puzzle
completed_message: Thanks for your participation!
end_image_select: Take a photo of your completed puzzle
start_image_select: Take a photo of the puzzle with the provided code written on a paper before starting it

View File

@@ -217,6 +217,7 @@ fr:
log_out: Déconnexion
offlines:
form:
already_submitted: Tu as déjà complété ton puzzle
completed_message: Merci pour ta participation !
end_image_select: Prends une photo du puzzle une fois complété
start_image_select: Prends une photo du puzzle avant de le commencer, avec le code donné par l'organisateur.ice écrit sur du papier