Translations for the contest dashboard page
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user