Show offline participants on public scoreboard + filter
Some checks failed
CI / scan_ruby (push) Failing after 15s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 14s
CI / test (push) Successful in 42s

This commit is contained in:
sto
2025-11-06 10:40:47 +01:00
parent 5348574ea4
commit cd032e3456
6 changed files with 58 additions and 21 deletions

View File

@@ -92,6 +92,9 @@ class ContestsController < ApplicationController
contestant.time_seconds
] }
filter_contestants_per_category
if params.key?(:hide_offline) && params[:hide_offline] == "true"
@contestants = @contestants.select { |contestant| !contestant.offline.present? }
end
@puzzles = @contest.puzzles.order(:id)
@action_name = t("helpers.buttons.refresh")
if params.key?(:category)
@@ -99,6 +102,7 @@ class ContestsController < ApplicationController
else
@action_path = "/public/#{@contest.friendly_id}"
end
@space = " "
render :scoreboard
end