Translations for the contest dashboard page
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 11s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 28s

This commit is contained in:
sto
2025-05-18 09:52:58 +02:00
parent ec2201f9a8
commit 7444a09046
8 changed files with 58 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ class ContestsController < ApplicationController
authorize @contest
@title = I18n.t("contests.show.title", name: @contest.name)
@action_name = "Edit"
@action_name = t("helpers.buttons.edit")
@action_path = edit_contest_path(@contest)
@contestants = @contest.contestants.order(:name)
@puzzles = @contest.puzzles.order(:id)
@@ -75,8 +75,8 @@ class ContestsController < ApplicationController
def set_badges
@badges = []
@badges.push("team") if @contest.team
@badges.push("registration") if @contest.allow_registration
@badges.push(t("helpers.badges.team")) if @contest.team
@badges.push(t("helpers.badges.registration")) if @contest.allow_registration
end
def set_contest