Sha256: f045f5f9a6b3cca182c16989235d14a6e94667f1ee128e815d744b86f555ac16

Contents?: true

Size: 671 Bytes

Versions: 3

Compression:

Stored size: 671 Bytes

Contents

- unless obj.nil?
  .text_content
    - seo = obj.seo
    - if (!defined?(h1) || h1) && seo and !seo.h1.blank?
      h1= seo.h1
    - if 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

  - content_for :title do
    - if obj.title
      title= obj.title

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms-0.2.0.2 app/views/shared/_obj.html.slim
enjoy_cms-0.2.0.1.beta app/views/shared/_obj.html.slim
enjoy_cms-0.2.0.beta app/views/shared/_obj.html.slim