osem-fcy/app/views/conference/_registration.html.haml
Gopesh Tulsyan abfb0884a1 Added registration segment to display description, period
Controller test for Conference#show

houndci fixes

Rebased with single entry for navigation branding

Conditional rendering of splash navbar
2014-05-30 00:30:09 +05:30

12 lines
556 B
Text

= content_for :splash_nav do
%li
%a{ href: '#registration' } Registration
%div.container.text-center
%div.row
%h2 Registration
- 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?
= link_to "Register for #{@conference.short_title}", register_conference_path(@conference.short_title), :class =>"btn btn-success btn-lg", target: '_blank'