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.
16 lines
595 B
Text
16 lines
595 B
Text
= content_for :splash_nav do
|
|
%li
|
|
%a.smoothscroll{ href: '#call' } Call For Content
|
|
|
|
%section#call
|
|
.container
|
|
.row
|
|
- if one_call_open(call_for_events, call_for_tracks)
|
|
.col-md-3.col-sm-3.hidden-xs
|
|
- if call_for_events.try(:open?)
|
|
= render 'call_for_papers', conference_id: conference.short_title,
|
|
call: call_for_events, event_types: event_types, tracks: tracks
|
|
.col-md-2.col-sm-2
|
|
- if call_for_tracks.try(:open?)
|
|
= render 'call_for_tracks', conference_id: conference.short_title,
|
|
call: call_for_tracks
|