FIXUP fragment caching issues

This commit is contained in:
James Mason 2017-11-29 15:29:06 -08:00
parent 5fb09f398a
commit 754d201b01
7 changed files with 36 additions and 31 deletions

View file

@ -12,7 +12,6 @@ class ConferencesController < ApplicationController
@conference = Conference.unscoped.eager_load( @conference = Conference.unscoped.eager_load(
:organization, :organization,
:splashpage, :splashpage,
:venue,
:registration_period, :registration_period,
:tickets, :tickets,
:confirmed_tracks, :confirmed_tracks,
@ -26,6 +25,7 @@ class ConferencesController < ApplicationController
:sponsors, :sponsors,
:call_for_sponsors, :call_for_sponsors,
:contact, :contact,
venue: [:commercial],
highlighted_events: [:speakers], highlighted_events: [:speakers],
sponsorship_levels: [:sponsors] sponsorship_levels: [:sponsors]
).order( ).order(

View file

@ -13,5 +13,3 @@
- else - else
.caption .caption
%h3.text-center= booth.title %h3.text-center= booth.title
- content_for :modals do
= render 'modal_description', object: booth

View file

@ -1,4 +1,5 @@
- content_for :modals do - content_for :modals do
- cache [object, '#modal'] do
.modal.fade{ id: "modal-#{object.class.name.downcase}-#{object.id}" } .modal.fade{ id: "modal-#{object.class.name.downcase}-#{object.id}" }
.modal-dialog .modal-dialog
.modal-content .modal-content

View file

@ -31,3 +31,7 @@
= link_to(conference_schedule_path(conference.short_title), = link_to(conference_schedule_path(conference.short_title),
class: 'btn btn-success btn-lg') do class: 'btn btn-success btn-lg') do
Full Schedule Full Schedule
- conference.confirmed_booths.each do |booth|
- content_for :modals do
= render 'modal_description', object: booth

View file

@ -21,8 +21,6 @@
class: ['img-responsive', 'img-sponsor', class: ['img-responsive', 'img-sponsor',
"img-sponsor-#{sponsorship_level.position}"], "img-sponsor-#{sponsorship_level.position}"],
title: sponsor.name title: sponsor.name
- content_for :modals do
= render 'modal_description', object: sponsor
- if conference.call_for_sponsors.try(:open?) - if conference.call_for_sponsors.try(:open?)
.row .row
@ -31,3 +29,7 @@
Want to sponsor? Want to sponsor?
= link_to(sponsorship_mailto(conference)) do = link_to(sponsorship_mailto(conference)) do
Contact us! Contact us!
- conference.sponsors.each do |sponsor|
- content_for :modals do
= render 'modal_description', object: sponsor

View file

@ -2,11 +2,11 @@
%li %li
%a.smoothscroll{ href: '#venue' } Venue %a.smoothscroll{ href: '#venue' } Venue
- cache [conference.venue, conference.venue.commercial, '#splash#venue'] do %section#venue
%section#venue
- if conference.venue.location? - if conference.venue.location?
= render '/conferences/venue_map', conference: conference = render '/conferences/venue_map', conference: conference
- else - else
- cache [conference.venue, conference.venue.commercial, '#splash#venue'] do
.container .container
.row .row
.col-md-6 .col-md-6

View file

@ -43,5 +43,5 @@
You can run, copy, distribute, study, change and improve it. You can run, copy, distribute, study, change and improve it.
The source code and the developers are on The source code and the developers are on
=link_to "github.", "https://github.com/openSUSE/osem" =link_to "github.", "https://github.com/openSUSE/osem"
= content_for(:script_body) = yield :script_body
= piwik_tracking_tag = piwik_tracking_tag