Sha256: bfde34124c90f7b067acc645bfdcb43f76b14f813958889ab0748897c6f2a162

Contents?: true

Size: 723 Bytes

Versions: 8

Compression:

Stored size: 723 Bytes

Contents

%table{:class => table_styles}
  - if object.kind_of?(Array)
    %tr
      - overview_fields(type).each do |k, path|
        %th= k.to_s.humanize
    - object.each do |o|
      %tr
        - overview_fields(type).each do |k, path|
          - parent = path.empty? ? type : path[-2]
          - path.shift
          - value, id = get_value_and_id(o, path)
          %td{:class => importantize(k, value)}= linkify(k, value, parent, id)
  - else
    - overview_fields(type).each do |k, path|
      - parent = path.empty? ? type : path[-2]
      - path.shift
      - value, id = get_value_and_id(object, path)
      %tr{ :class => importantize(k, value)}
        %td= k.to_s.humanize
        %td= linkify(k, value, parent, id)

Version data entries

8 entries across 8 versions & 1 rubygems

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