Sha256: f87a52d660fc07d9322f9902bc2d8110a42276b64351c41ca33045d1b8cf0327

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 Bytes

Contents

- unless obj.nil?
  .text_content
    - 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
    - else
      = raw obj.content
    - if !obj.nil?
      = 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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rocket_cms-0.10.1 app/views/shared/_obj.html.haml
rocket_cms-0.10.0 app/views/shared/_obj.html.haml
rocket_cms-0.9.9 app/views/shared/_obj.html.haml
rocket_cms-0.9.8 app/views/shared/_obj.html.haml
rocket_cms-0.9.7 app/views/shared/_obj.html.haml
rocket_cms-0.9.5 app/views/shared/_obj.html.haml
rocket_cms-0.9.4 app/views/shared/_obj.html.haml