Contest language & top buttons
All checks were successful
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 33s

This commit is contained in:
sto
2025-06-20 08:07:39 +02:00
parent 71f2bb6b70
commit ac3b354480
13 changed files with 83 additions and 49 deletions

View File

@@ -2,13 +2,14 @@ table.table.table-striped.table-hover
thead
tr
th scope="col"
| Rank
= t("helpers.rank")
th scope="col"
| Name
= t("activerecord.attributes.contestant.name")
- if @contest.puzzles.size > 1
th scope="col"
= t("activerecord.attributes.contestant.completions")
th scope="col"
| Completed puzzles
th scope="col"
| Total time
= t("activerecord.attributes.contestant.display_time")
tbody
- @contestants.each_with_index do |contestant, index|
tr scope="row"
@@ -16,7 +17,8 @@ table.table.table-striped.table-hover
= index + 1
td
= contestant.name
td
= contestant.completions.length
- if @contest.puzzles.size > 1
td
= contestant.completions.length
td
= contestant.display_time