From 4d9f34c3cf1f7a4962208400114ee7eed0965b34 Mon Sep 17 00:00:00 2001 From: Gopesh Tulsyan Date: Fri, 30 May 2014 09:29:50 +0530 Subject: [PATCH] conditional rendering for registration period --- app/views/conference/_registration.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/conference/_registration.html.haml b/app/views/conference/_registration.html.haml index 5f52422b..23973993 100644 --- a/app/views/conference/_registration.html.haml +++ b/app/views/conference/_registration.html.haml @@ -7,7 +7,8 @@ - if !@conference.registration_description.blank? %p = @conference.registration_description - %h4 Registration period #{ date_string(@conference.registration_start_date, @conference.registration_end_date) } + - if @conference.registration_open? + %h4 Registration period #{ date_string(@conference.registration_start_date, @conference.registration_end_date) } - if @conference.registration_open? = link_to "Register for #{@conference.short_title}", register_conference_path(@conference.short_title), :class =>"btn btn-success btn-lg", target: '_blank' - if @conference.use_supporter_levels?