Check for cfp object before rendering partial

Fixed horizontal overflow in splash due to cfp timer

Fixed condition for rendering cfp
This commit is contained in:
Gopesh Tulsyan 2014-06-05 13:50:05 +05:30
parent a95a03c7e5
commit 005bead45f
2 changed files with 24 additions and 23 deletions

View file

@ -4,6 +4,7 @@
= render 'program'
%div#registration
= render 'registration'
%div#callforpapers
= render 'call_for_papers'
-unless @conference.call_for_papers.blank?
%div#callforpapers
= render 'call_for_papers'