Sha256: d8005614bc97e1a421be5e4f4a45fa96c60d5e9f084b53c2b16134f49249467b
Contents?: true
Size: 755 Bytes
Versions: 14
Compression:
Stored size: 755 Bytes
Contents
- @model_config.show.with(:object => @object, :view => self).visible_groups.each do |fieldset| - unless (fields = fieldset.with(:object => @object, :view => self).visible_fields).empty? - if !(values = fields.map{ |f| v = f.value; (!v.nil? && v != '' && v != []) ? v : nil }).compact.empty? || !RailsAdmin::config.compact_show_view .fieldset %h4 = fieldset.label - if fieldset.help %p= fieldset.help %dl - fields.each_with_index do |field, index| - if !values[index].nil? || !RailsAdmin::config.compact_show_view %dt.label{:class => "#{field.type_css_class} #{field.css_class}"}= field.label %dd %pre.prettyprint= field.pretty_value
Version data entries
14 entries across 14 versions & 4 rubygems