Shared scoreboard: extend UI for marathons
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-07-31 13:29:23 +02:00
parent 8a003a9731
commit 77b4e06151
5 changed files with 5 additions and 5 deletions

View File

@@ -211,7 +211,7 @@ class ContestsController < ApplicationController
if params.key?(:autorefresh)
@autorefresh = true
end
@puzzles = @contest.puzzles.where(hidden: false).or(@contest.puzzles.where(hidden: nil)).order(:id)
@puzzles = @contest.puzzles.where(hidden: false).or(@contest.puzzles.where(hidden: nil)).includes([ :image_attachment ]).order(:id)
@action_path = "/public/#{@contest.friendly_id}"
@space = " "
render :scoreboard