diff --git a/app/views/conference/_call_for_papers.html.haml b/app/views/conference/_call_for_papers.html.haml index 536faed4..7c1e22c1 100644 --- a/app/views/conference/_call_for_papers.html.haml +++ b/app/views/conference/_call_for_papers.html.haml @@ -13,27 +13,27 @@ - if !@conference.call_for_papers.start_date.blank? && !@conference.call_for_papers.end_date.blank? %p Proposals will be accepted between #{ date_string(@conference.call_for_papers.start_date, @conference.call_for_papers.end_date) } - - if @conference.cfp_open? - - if @conference.call_for_papers.end_date.to_time < Time.now - %p Today is the last day. Hurry Up! - - else - %div.row.col-md-12.col-md-offset-2 - %div.col-md-2 - %h2#days - %p Days - %div.col-md-2 - %h2#hours - %p Hours - %div.col-md-2 - %h2#minutes - %p Minutes - %div.col-md-2 - %h2#seconds - %p Seconds - %p - = link_to "Submit Your Proposals Today", conference_proposal_index_path(@conference.short_title), class: 'btn btn-info', target: '_blank' - -else - %h3 Deadline has ended + - if @conference.cfp_open? + - if @conference.call_for_papers.end_date.to_time < Time.now + %p Today is the last day. Hurry Up! + - else + %div.row.col-md-6.col-md-offset-4 + %div.col-md-2 + %h2#days + %p Days + %div.col-md-2 + %h2#hours + %p Hours + %div.col-md-2 + %h2#minutes + %p Minutes + %div.col-md-2 + %h2#seconds + %p Seconds + %p + = link_to "Submit Your Proposals Today", conference_proposal_index_path(@conference.short_title), class: 'btn btn-info', target: '_blank' + -else + %h3 Deadline has ended :javascript $( document ).ready(function(){ diff --git a/app/views/conference/show.html.haml b/app/views/conference/show.html.haml index cbadd6d3..29ec9699 100644 --- a/app/views/conference/show.html.haml +++ b/app/views/conference/show.html.haml @@ -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'