Fix contest creation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user