Improve show contest buttons
Some checks failed
CI / scan_ruby (push) Failing after 15s
CI / scan_js (push) Successful in 10s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 29s

This commit is contained in:
sto
2025-05-14 15:17:42 +02:00
parent 3a8517e637
commit 138fe67baa
3 changed files with 19 additions and 15 deletions

View File

@@ -13,6 +13,8 @@ class ContestsController < ApplicationController
authorize @contest
@title = I18n.t("contests.show.title", name: @contest.name)
@action_name = "Edit"
@action_path = edit_contest_path(@contest)
@contestants = @contest.contestants.order(:name)
@puzzles = @contest.puzzles.order(:id)
@messages = @contest.messages.order(:id)