Fewer queries for for Conference#show
Reduces SQL wait times by >90% on splash pages.
This commit is contained in:
parent
29a640a267
commit
995176ffe5
11 changed files with 122 additions and 99 deletions
|
|
@ -13,9 +13,9 @@
|
|||
%p.lead
|
||||
We recommend these affordable lodging accommodations for your visit.
|
||||
|
||||
.row.row-centered{ style:"display: flex; flex-wrap: wrap" }
|
||||
.row.row-centered
|
||||
- @conference.lodgings.each do |lodging|
|
||||
.col-md-4.col-sm-4.col-centered.col-top{ style:"display:flex;" }
|
||||
.col-md-4.col-sm-4.col-centered.col-top
|
||||
.thumbnail
|
||||
- if lodging.picture?
|
||||
-if lodging.website_link.present?
|
||||
|
|
@ -30,8 +30,8 @@
|
|||
%i.fa.fa-home.fa-5x
|
||||
- else
|
||||
%i.fa.fa-home.fa-5x
|
||||
.caption
|
||||
%h3.text-center
|
||||
= lodging.name
|
||||
-if lodging.description.present?
|
||||
= markdown(lodging.description)
|
||||
.caption
|
||||
%h3.text-center
|
||||
= lodging.name
|
||||
-if lodging.description.present?
|
||||
= markdown(lodging.description)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue