Sha256: d8732d83ad4765b30d263eb9fd4ffb8c7cf77cc61682406a05e83f9964b7d5be

Contents?: true

Size: 716 Bytes

Versions: 7

Compression:

Stored size: 716 Bytes

Contents

= content_for :head do
  %title= @page.page_title.present? ? @page.page_title : @page.title
  %meta{ name: 'keywords', content: @page.keywords }
  %meta{ name: 'description', content: @page.description }

- 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, @page.children] 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

7 entries across 7 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.2.5 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.2.4 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.2.3 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.2.2 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.2.1 app/views/kuhsaft/pages/show.html.haml
kuhsaft-2.2.0 app/views/kuhsaft/pages/show.html.haml