Fixing small bug on the home page

This commit is contained in:
Matt Barringer 2013-01-17 06:58:57 +01:00
parent 627e3b7b5f
commit faca4a0b18

View file

@ -2,7 +2,7 @@
%h1.center-text %h1.center-text
Upcoming Conferences Upcoming Conferences
- @conferences.each do |conference| - @conferences.each do |conference|
- if conference.cfp_open? - if conference.cfp_open? || conference.registration_open?
.well .well
%h2.center-text %h2.center-text
= conference.title = conference.title
@ -24,7 +24,8 @@
- else - else
%b Registration is closed. %b Registration is closed.
.span4.offset4.pull-right .span4.offset4.pull-right
- if !current_user.nil? && current_user.person.proposal_count(conference) > 0 - if conference.cfp_open?
= link_to "View My Proposals", conference_proposal_index_path(conference.short_title), :class => "btn btn-success btn-large" - if !current_user.nil? && current_user.person.proposal_count(conference) > 0
- else = link_to "View My Proposals", conference_proposal_index_path(conference.short_title), :class => "btn btn-success btn-large"
= link_to "Submit Proposal", conference_proposal_index_path(conference.short_title), :class => "btn btn-success btn-large" - else
= link_to "Submit Proposal", conference_proposal_index_path(conference.short_title), :class => "btn btn-success btn-large"