Sha256: fcd1af1e939854762e1c3ece53161d2c8ec4574227ecbc28f4478fd95ac44c0a

Contents?: true

Size: 369 Bytes

Versions: 19

Compression:

Stored size: 369 Bytes

Contents

%table.table
  - 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
          = resource.send(name)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rails-add_ons-1.5.2 app/views/component/_resource_table.haml
rails-add_ons-1.5.1 app/views/component/_resource_table.haml
rails-add_ons-1.5.0 app/views/component/_resource_table.haml
rails-add_ons-1.4.1 app/views/component/_resource_table.haml
rails-add_ons-1.4.0 app/views/component/_resource_table.haml
rails-add_ons-1.3.3 app/views/component/_resource_table.haml
rails-add_ons-1.3.2 app/views/component/_resource_table.haml
rails-add_ons-1.3.1 app/views/component/_resource_table.haml
rails-add_ons-1.3.0 app/views/component/_resource_table.haml
rails-add_ons-1.2.0 app/views/component/_resource_table.haml
rails-add_ons-1.1.0 app/views/component/_resource_table.haml
rails-add_ons-1.0.0 app/views/component/_resource_table.haml
rails-add_ons-0.6.0 app/views/component/_resource_table.haml
rails-add_ons-0.5.0 app/views/component/_resource_table.haml
rails-add_ons-0.4.1 app/views/component/_resource_table.haml
rails-add_ons-0.4.0 app/views/component/_resource_table.haml
rails-add_ons-0.3.2 app/views/component/_resource_table.haml
rails-add_ons-0.3.0 app/views/component/_resource_table.haml
rails-add_ons-0.2.0 app/views/component/_resource_table.haml