Merge pull request #202 from gopesht/check_cfp
Check for cfp object before rendering partial
This commit is contained in:
commit
ee655e09e8
2 changed files with 24 additions and 23 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
- if @conference.call_for_papers.end_date.to_time < Time.now
|
- if @conference.call_for_papers.end_date.to_time < Time.now
|
||||||
%p Today is the last day. Hurry Up!
|
%p Today is the last day. Hurry Up!
|
||||||
- else
|
- else
|
||||||
%div.row.col-md-12.col-md-offset-2
|
%div.row.col-md-6.col-md-offset-4
|
||||||
%div.col-md-2
|
%div.col-md-2
|
||||||
%h2#days
|
%h2#days
|
||||||
%p Days
|
%p Days
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
= render 'program'
|
= render 'program'
|
||||||
%div#registration
|
%div#registration
|
||||||
= render 'registration'
|
= render 'registration'
|
||||||
%div#callforpapers
|
-unless @conference.call_for_papers.blank?
|
||||||
|
%div#callforpapers
|
||||||
= render 'call_for_papers'
|
= render 'call_for_papers'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue