Add admin action to checkout contests
Some checks failed
CI / scan_ruby (push) Failing after 19s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 15s
CI / test (push) Failing after 39s

This commit is contained in:
sto
2025-11-26 10:44:30 +01:00
parent 7a80c434af
commit 66d968fca8
4 changed files with 7 additions and 2 deletions

View File

@@ -61,4 +61,4 @@
= contestant.completions.size > 0 && contestant.completions[-1].remaining_pieces ? "#{contestant.completions.map{|completion| completion.puzzle.pieces}.sum - contestant.completions[-1].remaining_pieces}p" : contestant.display_time = contestant.completions.size > 0 && contestant.completions[-1].remaining_pieces ? "#{contestant.completions.map{|completion| completion.puzzle.pieces}.sum - contestant.completions[-1].remaining_pieces}p" : contestant.display_time
td td
a.btn.btn-sm.btn-secondary href=edit_contest_contestant_path(@contest, contestant) a.btn.btn-sm.btn-secondary href=edit_contest_contestant_path(@contest, contestant)
= t("helpers.buttons.open") = t("helpers.buttons.details")

View File

@@ -33,4 +33,7 @@
= contest.puzzles.length = contest.puzzles.length
td td
= contest.contestants.length = contest.contestants.length
td
a.btn.btn-sm.btn-secondary href=contest_path(contest)
= t("helpers.buttons.open")

View File

@@ -264,6 +264,7 @@ en:
back_to_contestant: "⬅ Back to the participant" back_to_contestant: "⬅ Back to the participant"
confirm: "Confirm" confirm: "Confirm"
create: "Create" create: "Create"
details: Open
delete: "Delete" delete: "Delete"
edit: "Edit" edit: "Edit"
end: Click here to submit your completion end: Click here to submit your completion

View File

@@ -236,12 +236,13 @@ fr:
confirm: "Confirmer" confirm: "Confirmer"
create: "Créer" create: "Créer"
delete: "Supprimer" delete: "Supprimer"
details: Détails
edit: "Modifier" edit: "Modifier"
end: Clique ici pour valider ta complétion du puzzle end: Clique ici pour valider ta complétion du puzzle
export: Exporter export: Exporter
generate_qrcodes: Générer des QR codes generate_qrcodes: Générer des QR codes
import: Importer un CSV import: Importer un CSV
open: Détails open: Ouvrir
open_raw: Ouvrir dans un format imprimable open_raw: Ouvrir dans un format imprimable
refresh: Rafraîchir refresh: Rafraîchir
settings: Paramètres settings: Paramètres