Sha256: 0b14f358a356e4b44d19720cc4af460650d30e7e73912d3fd71c603070ceb6b8

Contents?: true

Size: 789 Bytes

Versions: 29

Compression:

Stored size: 789 Bytes

Contents

- unless obj.nil?
  - content = capture do
    - if (!defined?(h1) || h1) && !obj.h1.blank?
      h1= obj.h1
    - if !obj.respond_to?(:content) || obj.content.blank?
      - unless @seo_page.nil?
        = raw @seo_page.page_content
        - if (@seo_page.id == obj.id && @seo_page.class.name == obj.class.name)
          = render 'shared/admin_link', obj: @seo_page
    - else
      = raw obj.content
      = render 'shared/admin_link', obj: obj
    - if !@seo_page.nil? && (@seo_page.id != obj.id || @seo_page.class.name != obj.class.name)
      = render 'shared/admin_link', obj: @seo_page
  - unless content.blank?
    .text_content
      = content

  - content_for :meta do
    = render 'shared/meta', obj: obj
    = render 'shared/og', title: obj.get_og_title, image: obj.og_image

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 app/views/shared/_obj.slim
rocket_cms-0.37.0 app/views/shared/_obj.slim
rocket_cms-0.36.0 app/views/shared/_obj.slim
rocket_cms-0.35.0 app/views/shared/_obj.slim
rocket_cms-0.34.0 app/views/shared/_obj.slim
rocket_cms-0.33.1 app/views/shared/_obj.slim
rocket_cms-0.33.0 app/views/shared/_obj.slim
rocket_cms-0.32.0 app/views/shared/_obj.slim
rocket_cms-0.31.1 app/views/shared/_obj.slim
rocket_cms-0.31.0 app/views/shared/_obj.slim
rocket_cms-0.30.0 app/views/shared/_obj.slim
rocket_cms-0.29.0 app/views/shared/_obj.slim
rocket_cms-0.28.0 app/views/shared/_obj.slim
rocket_cms-0.27.8 app/views/shared/_obj.slim
rocket_cms-0.27.7 app/views/shared/_obj.slim
rocket_cms-0.27.6 app/views/shared/_obj.slim
rocket_cms-0.27.5 app/views/shared/_obj.slim
rocket_cms-0.27.4 app/views/shared/_obj.slim
rocket_cms-0.27.3 app/views/shared/_obj.slim
rocket_cms-0.27.2 app/views/shared/_obj.slim