Sha256: 263b03ded94cb7cfab963924babf54a2ad27268a6e48967f6e8a6c529ffa6e1d
Contents?: true
Size: 813 Bytes
Versions: 16
Compression:
Stored size: 813 Bytes
Contents
- @model_config.show.with(object: @object, view: self, controller: self.controller).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.formatted_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
16 entries across 16 versions & 2 rubygems