Improve public scoreboard UI + make it responsive
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user