mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04: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.
46 lines
685 B
Text
46 lines
685 B
Text
%dt
|
|
Type:
|
|
%dd
|
|
= @cfp.cfp_type.capitalize
|
|
%dt
|
|
Start Date:
|
|
%dd#start_date
|
|
= @cfp.start_date.strftime('%A, %B %-d. %Y')
|
|
%dt
|
|
End Date:
|
|
%dd#end_date
|
|
= @cfp.end_date.strftime('%A, %B %-d. %Y')
|
|
%dt
|
|
Description:
|
|
%dd#description
|
|
= markdown(@cfp.description)
|
|
%dt
|
|
Days Left:
|
|
%dd
|
|
= pluralize(@cfp.remaining_days, 'day')
|
|
%dt
|
|
Event types:
|
|
%dd
|
|
= event_types_sentence(@conference)
|
|
%dt
|
|
Tracks:
|
|
%dd
|
|
= tracks(@conference)
|
|
%dt
|
|
Public Schedule:
|
|
%dd#schedule_public
|
|
- if @program.schedule_public
|
|
Yes
|
|
- else
|
|
No
|
|
%dt
|
|
Schedule changeable?
|
|
%dd#schedule_changes
|
|
- if @program.schedule_fluid
|
|
Yes
|
|
- else
|
|
No
|
|
%dt
|
|
Rating Levels:
|
|
%dd#rating
|
|
= @program.rating
|