Made lodging cards of same height w.r.t. to its row. Fixes #1456.
This commit is contained in:
parent
bc45531efd
commit
7af712f492
1 changed files with 19 additions and 15 deletions
|
|
@ -12,22 +12,26 @@
|
||||||
= @conference.venue.city
|
= @conference.venue.city
|
||||||
%p.lead
|
%p.lead
|
||||||
We recommend these affordable lodging accommodations for your visit.
|
We recommend these affordable lodging accommodations for your visit.
|
||||||
- @conference.lodgings.each_slice(3) do |slice|
|
|
||||||
.row.row-centered
|
.row.row-centered{ style:"display: flex; flex-wrap: wrap" }
|
||||||
- slice.each do |lodging|
|
- @conference.lodgings.each do |lodging|
|
||||||
.col-md-4.col-sm-4.ticket.col-centered.col-top
|
.col-md-4.col-sm-4.col-centered.col-top{ style:"display:flex;" }
|
||||||
.thumbnail
|
.thumbnail
|
||||||
- unless lodging.picture?
|
- if lodging.picture?
|
||||||
%p.text-center
|
-if lodging.website_link.present?
|
||||||
%i.fa.fa-home.fa-5x
|
= link_to(lodging.website_link, class: 'thumbnail') do
|
||||||
|
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging'
|
||||||
- else
|
- else
|
||||||
|
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging'
|
||||||
|
- else
|
||||||
|
%p.text-center
|
||||||
-if lodging.website_link.present?
|
-if lodging.website_link.present?
|
||||||
= link_to(lodging.website_link, class: 'thumbnail') do
|
= link_to(lodging.website_link, class: 'thumbnail') do
|
||||||
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging'
|
%i.fa.fa-home.fa-5x
|
||||||
- else
|
- else
|
||||||
= image_tag lodging.picture.large.url, class: 'img-responsive img-lodging'
|
%i.fa.fa-home.fa-5x
|
||||||
.caption
|
.caption
|
||||||
%h3.text-center
|
%h3.text-center
|
||||||
= lodging.name
|
= lodging.name
|
||||||
-if lodging.description.present?
|
-if lodging.description.present?
|
||||||
= markdown(lodging.description)
|
= markdown(lodging.description)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue