Integrate the splash page into the general layout
* Cleanup the CSS * Fix more views then you have fingers and toes * Introduce position(weight) for sponsor levels * Fix bootstrap/datatable integration
This commit is contained in:
parent
7acd16f923
commit
f2cdea4f1a
56 changed files with 1191 additions and 1266 deletions
|
|
@ -1,22 +1,16 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a.smoothscroll{ href: '#registration' } Registration
|
||||
%div.container.text-center
|
||||
%div.row
|
||||
%h1 Registration
|
||||
- if !@conference.splashpage.registration_description.blank?
|
||||
.lead
|
||||
= markdown(@conference.splashpage.registration_description)
|
||||
- if @conference.registration_dates_given?
|
||||
-if @conference.registration_period.end_date >= Date.today
|
||||
%h4 Registration period #{ date_string(@conference.registration_period.start_date, @conference.registration_period.end_date) }
|
||||
-else
|
||||
%h4 Registration is Closed, it was from #{ date_string(@conference.registration_period.start_date, @conference.registration_period.end_date) }
|
||||
- if @conference.registration_open?
|
||||
- if current_user && @conference.user_registered?(current_user)
|
||||
= link_to "Modify Registration for #{@conference.short_title}", edit_conference_conference_registrations_path(@conference.short_title), class: "btn btn-success btn-lg", target: '_blank'
|
||||
- else
|
||||
= link_to "Register for #{@conference.short_title}", new_conference_conference_registrations_path(@conference.short_title), class: "btn btn-success btn-lg", target: '_blank'
|
||||
- if @conference.tickets.any?
|
||||
- if @conference.splashpage.include_tickets
|
||||
= render 'tickets'
|
||||
|
||||
.container
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h1 Registration
|
||||
%p.lead
|
||||
Going to
|
||||
= @conference.short_title
|
||||
is free of charge. We only ask you to
|
||||
= link_to "register yourself", new_conference_conference_registrations_path(@conference.short_title)
|
||||
until
|
||||
= @conference.registration_period.end_date
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue