Sha256: b00fec3913e7da005b4ae1414ab930a46728444c029c3ac7dae20429397c9e9b

Contents?: true

Size: 593 Bytes

Versions: 3

Compression:

Stored size: 593 Bytes

Contents

module ExpressAdmin
  class PageHeaderComponent < ExpressTemplates::Components::Base
    ETC = ExpressTemplates::Components

    class PageHeader < ExpressTemplates::Components::Base
      emits -> {
        h1 {
          content_for(:page_header) if content_for?(:page_header)
        }
      }
    end

    class PageHeaderLead < ExpressTemplates::Components::Base
      emits -> {
        p(class: 'lead') {
          content_for(:page_header_lead) if content_for?(:page_header_lead)
        }
      }
    end

    emits -> {
        page_header
        page_header_lead
    }

  end


end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
express_admin-1.3.2 app/components/express_admin/page_header_component.rb
express_admin-1.3.1 app/components/express_admin/page_header_component.rb
express_admin-1.3.0 app/components/express_admin/page_header_component.rb