Sha256: 6acf14f8bd88ea218a455a50e1cf0260a4e6037f8d6e9b5b96bfaa60e1cd814f

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

= 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kuhsaft-2.1.0 app/views/kuhsaft/pages/show.html.haml
kuhsaft-1.8.6 app/views/kuhsaft/pages/show.html.haml
kuhsaft-1.8.5 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.0.3 app/views/kuhsaft/pages/show.html.haml