Sha256: fb9f4e1fe9dda8e0a2328ad99ad2c7a83265a92ba99212570dec1affaccfe0b5
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
module Harpiya module CmsPagesHelper def simple_page?(page) page.content.present? && !page.sections? end def section_tags(section, &block) inner_content = content_tag(:div, class: section.css_classes , &block) if section.fullscreen? inner_content else content_tag(:div, inner_content, class: 'container') end end def build_section(section) section_tags(section) do render "harpiya/shared/cms/sections/#{harpiya_resource_path(section)}", section: section end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
harpiya_frontend-4.3.0.alpha | app/helpers/harpiya/cms_pages_helper.rb |