Sha256: f456870db44e89d66d1e536bba916fd309e75eeffd1735444e888ebf499afd9c

Contents?: true

Size: 803 Bytes

Versions: 4

Compression:

Stored size: 803 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.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

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin-0.6.5 app/views/rails_admin/main/show.html.haml
rails_admin-0.6.4 app/views/rails_admin/main/show.html.haml
rails_admin-0.6.3 app/views/rails_admin/main/show.html.haml
rails_admin-0.6.2 app/views/rails_admin/main/show.html.haml