Sha256: 22a205cc8edd22dcf764ff1e87b7bda8bde70025a76a76f660f25032773a5416
Contents?: true
Size: 896 Bytes
Versions: 2
Compression:
Stored size: 896 Bytes
Contents
%table{:class => "#{table_styles}#{" #{table_with_header_styles}" if object.kind_of?(Array)}"} - if object.kind_of?(Array) %thead - overview_fields(type).each do |k, path| - if header_styles(k) %th{:class => header_styles(k)}= k.to_s.humanize - else %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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hashbrowns-0.2.5 | lib/hashbrowns/views/hashbrowns/_overview.html.haml |
hashbrowns-0.2.4 | lib/hashbrowns/views/hashbrowns/_overview.html.haml |