Let's get serious about linting, folks.
This commit is contained in:
parent
8f43da79b5
commit
27f6d8ad73
26 changed files with 341 additions and 235 deletions
34
app/views/conferences/_registration.haml
Normal file
34
app/views/conferences/_registration.haml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
%a.smoothscroll{ href: '#registration' } Registration
|
||||
|
||||
- cache [conference.registration_period, conference.tickets,
|
||||
'#splash#registration'] do
|
||||
%section#registration
|
||||
.container
|
||||
.row
|
||||
.col-md-12.text-center
|
||||
%h1 Registration
|
||||
- if conference.registration_limit_exceeded?
|
||||
%p
|
||||
Sorry, the conference registration limit has exceeded
|
||||
- elsif conference.tickets.empty?
|
||||
%p.lead
|
||||
Going to
|
||||
= conference.short_title
|
||||
is free of charge.
|
||||
%p
|
||||
We only ask you to register yourself before
|
||||
= date_string(conference.registration_period.end_date)
|
||||
so we can plan for the right amount of people.
|
||||
%p.cta-button
|
||||
- else
|
||||
%p
|
||||
The registration period is open
|
||||
= date_string(conference.registration_period.start_date,
|
||||
conference.registration_period.end_date)
|
||||
- if conference.registration_open?
|
||||
%p.cta-button
|
||||
= link_to('Register Now',
|
||||
new_conference_conference_registration_path(conference.short_title),
|
||||
class: 'btn btn-lg btn-success')
|
||||
Loading…
Add table
Add a link
Reference in a new issue