mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
The single query was producing a tremendously large ActiveRecord allocation. While this isn't nearly as cool as one query, it's still a significant reduction in SQL trips, and now has the bonus of only loading what is actually going to be displayed.
15 lines
470 B
Text
15 lines
470 B
Text
.row
|
|
.col-md-12
|
|
%h3.text-center Booths
|
|
.row.row-centered
|
|
- booths.each do |booth|
|
|
.col-md-2.col-sm-2.col-centered.col-top.booth
|
|
%a.thumbnail{ href: '#',
|
|
data: { toggle: 'modal', target: "#modal-booth-#{booth.id}" } }
|
|
- if booth.picture?
|
|
= image_tag get_logo(booth),
|
|
class: ['img-responsive', 'img-rounded'],
|
|
title: booth.title
|
|
- else
|
|
.caption
|
|
%h3.text-center= booth.title
|