Show offline participants on public scoreboard + filter
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user