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

Version Path
rails_admin-1.4.3 app/views/rails_admin/main/show.html.haml
rails_admin-1.4.2 app/views/rails_admin/main/show.html.haml
rails_admin-1.4.1 app/views/rails_admin/main/show.html.haml
rails_admin-1.4.0 app/views/rails_admin/main/show.html.haml
rails_admin-1.3.0 app/views/rails_admin/main/show.html.haml
rails_admin-1.2.0 app/views/rails_admin/main/show.html.haml
rails_admin-1.1.1 app/views/rails_admin/main/show.html.haml
rails_admin-1.1.0 app/views/rails_admin/main/show.html.haml
rails_admin-1.0.0 app/views/rails_admin/main/show.html.haml
rails_admin-1.0.0.rc app/views/rails_admin/main/show.html.haml
rails_admin-0.8.1 app/views/rails_admin/main/show.html.haml
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails_admin-0.7.0/app/views/rails_admin/main/show.html.haml
rails_admin-0.7.0 app/views/rails_admin/main/show.html.haml
rails_admin-0.6.8 app/views/rails_admin/main/show.html.haml
rails_admin-0.6.7 app/views/rails_admin/main/show.html.haml
rails_admin-0.6.6 app/views/rails_admin/main/show.html.haml