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

@ -6,14 +6,14 @@
%section#lodging
.container
.row
.col-md-12.text-centers
.col-md-12.text-center
%h2
Where to stay
- if @conference.venue
in
= @conference.venue.city
%p.lead
We recommend these affordable lodging accommodations for your visit.
We recommend the following accommodations for your visit.
.row.row-centered
- @conference.lodgings.each do |lodging|
@ -22,9 +22,11 @@
- if lodging.picture?
-if lodging.website_link.present?
= link_to(lodging.website_link, class: 'thumbnail') do
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging'
= image_tag lodging.picture.large.url,
class: 'img-responsive img-lodging'
- else
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging'
= image_tag lodging.picture.large.url,
class: 'img-responsive img-lodging'
- else
%p.text-center
-if lodging.website_link.present?