Sha256: 6fbef6223dcf14d2fd7e0e85a6efe4376e150b9af05c1475de22c6bc0d5a3d56
Contents?: true
Size: 792 Bytes
Versions: 13
Compression:
Stored size: 792 Bytes
Contents
- @model_config.show.with(:object => @object, :view => self).visible_groups.each do |fieldset| - unless (fields = fieldset.with(:object => @object, :view => self, :controller => self.controller).visible_fields).empty? - if !(values = fields.map{ |f| f.value.presence }).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| - unless values[index].nil? && RailsAdmin::config.compact_show_view %dt %span.label.label-info{:class => "#{field.type_css_class} #{field.css_class}"} = field.label %dd.well = field.pretty_value
Version data entries
13 entries across 13 versions & 2 rubygems