From faca4a0b181a2d5f79730c83208114e606c9eb69 Mon Sep 17 00:00:00 2001 From: Matt Barringer Date: Thu, 17 Jan 2013 06:58:57 +0100 Subject: [PATCH] Fixing small bug on the home page --- app/views/home/index.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 421f9023..cd13f881 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -2,7 +2,7 @@ %h1.center-text Upcoming Conferences - @conferences.each do |conference| - - if conference.cfp_open? + - if conference.cfp_open? || conference.registration_open? .well %h2.center-text = conference.title @@ -24,7 +24,8 @@ - else %b Registration is closed. .span4.offset4.pull-right - - if !current_user.nil? && current_user.person.proposal_count(conference) > 0 - = link_to "View My Proposals", 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" \ No newline at end of file + - if conference.cfp_open? + - if !current_user.nil? && current_user.person.proposal_count(conference) > 0 + = link_to "View My Proposals", 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" \ No newline at end of file