Setup I18n for titles
All checks were successful
CI / scan_ruby (push) Successful in 17s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 26s

This commit is contained in:
sto
2025-03-27 12:15:27 +01:00
parent 26b8064553
commit 497768610d
10 changed files with 51 additions and 37 deletions

View File

@@ -7,8 +7,6 @@ class CompletionsController < ApplicationController
def edit
authorize @contest
@title = "Edit completion"
end
def new
@@ -18,7 +16,6 @@ class CompletionsController < ApplicationController
if params[:contestant_id]
@completion.contestant_id = params[:contestant_id]
end
@title = "New completion"
end
def create
@@ -32,7 +29,6 @@ class CompletionsController < ApplicationController
else
logger = Logger.new(STDOUT)
logger.info(@completion.errors)
@title = "New completion"
render :new, status: :unprocessable_entity
end
end
@@ -47,7 +43,6 @@ class CompletionsController < ApplicationController
extend_completions!(@completion.contestant)
redirect_to @contest
else
@title = "Edit completion"
render :edit, status: :unprocessable_entity
end
end