Sha256: 1d7d8d58b144d9b38e5379b18c034afecf09870de90dbf51d63be7eb1c371a15

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 Bytes

Contents

module ExpressAdmin
  class PageHeader < ExpressTemplates::Components::Base

    contains -> {
      if content_for?(:page_header)
        h1 {
          content_for(:page_header)
        }
      end
      if content_for?(:page_header_lead)
        para(class: 'lead') {
          content_for(:page_header_lead)
        }
      end
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
express_admin-1.6.3 app/components/express_admin/page_header.rb
express_admin-1.6.2 app/components/express_admin/page_header.rb
express_admin-1.6.1 app/components/express_admin/page_header.rb
express_admin-1.6.0 app/components/express_admin/page_header.rb
express_admin-1.5.0 app/components/express_admin/page_header.rb