mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +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.
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
= content_for :splash_nav do
|
|
%li
|
|
%a.smoothscroll{ href: '#program' } Program
|
|
|
|
- cache [conference, highlights, tracks, booths, '#splash#program'] do
|
|
%section#program
|
|
.container
|
|
.row
|
|
.col-md-12
|
|
%p.lead.text-center
|
|
%span.notranslate
|
|
= conference.title
|
|
has the most awesome program ever!
|
|
|
|
- unless highlights.blank?
|
|
= render 'highlights', conference_id: conference.short_title,
|
|
highlights: highlights
|
|
|
|
- if conference.splashpage.include_tracks
|
|
- unless tracks.blank?
|
|
= render 'tracks', tracks: tracks
|
|
|
|
- if conference.splashpage.include_booths
|
|
- unless booths.blank?
|
|
= render 'booths', booths: booths
|
|
|
|
- if conference.program.try(:schedule_public?)
|
|
.row
|
|
.col-md-12
|
|
%p.cta-button.text-center
|
|
= link_to(conference_schedule_path(conference.short_title),
|
|
class: 'btn btn-success btn-lg') do
|
|
Full Schedule
|
|
|
|
- unless booths.blank?
|
|
- booths.each do |booth|
|
|
- content_for :modals do
|
|
= render 'modal_description', object: booth
|