Sha256: 0bebb562e372d8e267ca8df65122a53aa9d77880a28633fd450c7fd76881090a

Contents?: true

Size: 956 Bytes

Versions: 10

Compression:

Stored size: 956 Bytes

Contents

- if object.kind_of?(Array)
  - object.each do |i|
    = render :partial => "hashbrowns/recursive_hash_tabler", :locals => { :object => i, :parent => parent }
- elsif
  %table{:class => table_styles}
    - object.each_pair do |k,v|
      - if v.kind_of?(Hash)
        %tr
          %td= k
          %td= render :partial => "hashbrowns/recursive_hash_tabler", :locals => { :object => v, :parent => parent_setter(k,parent) } unless v.blank?
      - elsif v.kind_of?(Array)
        %tr
          %td= k
          %td
            - v.each do |i|
              - if i.kind_of?(Hash)
                = render :partial => "hashbrowns/recursive_hash_tabler", :locals => { :object => i, :parent => parent_setter(k, parent) } unless i.blank?
      - else
        %tr{ :class => importantize(k, v) }
          %td= k
          %td
            - if defined?(parent)
              = linkify(k,v,parent)
            - else
              = linkify(k,v)
- else
  = object

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hashbrowns-0.2.5 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.2.4 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.2.3 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.2.2 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.2.1 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.2.0 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.1.6 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.1.5 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.1.4 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml
hashbrowns-0.1.3 lib/hashbrowns/views/hashbrowns/_recursive_hash_tabler.html.haml