Improve public scoreboard UI + make it responsive
All checks were successful
CI / scan_ruby (push) Successful in 19s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 43s

This commit is contained in:
sto
2025-06-26 10:53:21 +02:00
parent d28f888ee2
commit 1b34d10dee
3 changed files with 133 additions and 47 deletions

View File

@@ -78,6 +78,8 @@ class ContestsController < ApplicationController
@title = I18n.t("contests.scoreboard.title", name: @contest.name)
@contestants = @contest.contestants.sort_by { |contestant| [ -contestant.completions.size, contestant.time_seconds ] }
@puzzles = @contest.puzzles.order(:id)
@action_name = t("helpers.buttons.refresh")
@action_path = "/public/#{@contest.friendly_id}"
render :scoreboard
end