Merge branch 'master' into fix-sponsor-caching
This commit is contained in:
commit
2bab4ef96c
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ class ConferencesController < ApplicationController
|
|||
authorize! :show, @conference # TODO: reduce the 10 queries performed here
|
||||
|
||||
splashpage = @conference.splashpage
|
||||
|
||||
unless splashpage.present?
|
||||
redirect_to admin_conference_splashpage_path(@conference.short_title) && return
|
||||
end
|
||||
|
||||
if splashpage.include_cfp
|
||||
cfps = @conference.program.cfps
|
||||
@call_for_events = cfps.find { |call| call.cfp_type == 'events' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue