Sha256: 76ffa514e7c144f4821043942504d4024b186b623fecedf63c3ad1b333b86ebf

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

%table{ class: table_css_classes }
  - rows.each do |name, options|
    %tr
      - if resource_class.respond_to? :human_attribute_name
        %th
          = resource_class.human_attribute_name(name)
      - else
        %th
          = name
      - if options[:block].present?
        %td
          = options[:block].call(resource)
      - else
        %td
          = render partial: "rao/component/table/body_cells/#{options[:render_as]}", locals: { resource: resource, name: name, options: options }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rao-component-0.0.6.pre app/views/rao/component/_resource_table.html.haml
rao-component-0.0.5.pre app/views/rao/component/_resource_table.html.haml
rao-component-0.0.4.pre app/views/rao/component/_resource_table.html.haml
rao-component-0.0.3.pre app/views/rao/component/_resource_table.html.haml
rao-component-0.0.2.pre app/views/rao/component/_resource_table.html.haml