From 302d45f91ad6e1a6785d6b3a943538637855b91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sede=C3=B1o?= Date: Tue, 2 Feb 2016 21:19:14 +0100 Subject: [PATCH] If there are tickets for the conference, not show the msg about the free of charge. fix #745 --- app/views/conference/_registration.html.haml | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app/views/conference/_registration.html.haml b/app/views/conference/_registration.html.haml index a19ba66b..aa0d29f8 100644 --- a/app/views/conference/_registration.html.haml +++ b/app/views/conference/_registration.html.haml @@ -6,14 +6,19 @@ .row .col-md-12.text-center %h1 Registration - %p.lead - Going to - = @conference.short_title - is free of charge. - %p - We only ask you to register yourself until - = @conference.registration_period.end_date.strftime('%A, %B %-d. %Y') - so we can plan for the right amount of people. + - if @conference.tickets.empty? + %p.lead + Going to + = @conference.short_title + is free of charge. + %p + We only ask you to register yourself until + = @conference.registration_period.end_date.strftime('%A, %B %-d. %Y') + so we can plan for the right amount of people. + - else + %p + The registration period ends on + = @conference.registration_period.end_date.strftime('%A, %B %-d. %Y') %p.cta-button = link_to(new_conference_conference_registrations_path(@conference.short_title), class: 'btn btn-lg btn-success') do Register Now