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
This commit is contained in:
parent
25a56097c5
commit
abfb0884a1
6 changed files with 34 additions and 2 deletions
12
app/views/conference/_registration.html.haml
Normal file
12
app/views/conference/_registration.html.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
= 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue