Public scoreboard scaffold
Some checks failed
CI / scan_ruby (push) Successful in 14s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 11s
CI / test (push) Failing after 8s

This commit is contained in:
sto
2025-03-23 08:44:38 +01:00
parent 9a2a3a6f33
commit 2982f44acc
7 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
table.table.table-striped.table-hover
thead
tr
th scope="col"
| Rank
th scope="col"
| Name
th scope="col"
| Completed puzzles
tbody
- @contestants.each_with_index do |contestant, index|
tr scope="row"
td
= index + 1
td
= contestant.name
td
= contestant.completions.length

View File

@@ -14,7 +14,7 @@
| Edit contest
p
|> Public scoreboard:
= link_to root_url + "public/#{@contest.slug}"
= link_to root_url + "public/#{@contest.slug}", root_url + "public/#{@contest.slug}"
.row.mb-4
.col-6