Fix contest creation
Some checks failed
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 14s
CI / test (push) Failing after 35s

This commit is contained in:
sto
2025-11-18 09:30:40 +01:00
parent e67ee92838
commit 0f725e2eef
3 changed files with 7 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ html
= msg
h1.mb-4
- if @contest
- if @contest && @contest.id.present?
= @contest.name
- if active_page("/public") == "active" && @action_path
a.ms-4.btn.btn-primary href=@action_path style="margin-top: -6px"
@@ -52,7 +52,7 @@ html
- else
= @title
- if @contest && active_page("/public") != "active"
- if @contest && active_page("/public") != "active" && active_page("/contests/new") != "active" && active_page("/contests/create") != "active" && active_page("/contests") == "active"
= render "contest_nav"
= yield