Consistent design and code cleanup of splashpage elements.

* get rid of unnecessary slice()
* center up small groups of elements
* consistent text use FIXME: extract out strings
* consistent date strings
* simplified views for easier theming
This commit is contained in:
James Mason 2017-11-21 18:31:14 -08:00
parent f0c3fc357b
commit aee1f58607
7 changed files with 48 additions and 92 deletions

View file

@ -19,14 +19,15 @@
= @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')
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 ends on
= @conference.registration_period.end_date.strftime('%A, %B %-d. %Y')
= date_string(@conference.registration_period.end_date)
%p.cta-button
= link_to(new_conference_conference_registration_path(@conference.short_title), class: 'btn btn-lg btn-success') do
= link_to(new_conference_conference_registration_path(@conference.short_title),
class: 'btn btn-lg btn-success') do
Register Now