= content_for :head do %title= @page.page_title.present? ? @page.page_title : @page.title - if @page.bricks.map(&:type).include? "Kuhsaft::PlaceholderBrick" - unless @page.blank? .page-content -# TODO: refactor into scopes or simplify otherwise: - @page.bricks.localized.select(&:valid?).each do |brick| = render brick - else - cache [@page, I18n.locale] do - unless @page.blank? .page-content -# TODO: refactor into scopes or simplify otherwise: - @page.bricks.localized.select(&:valid?).each do |brick| = render brick