Sha256: f9b60443a7dee232fbb7a1ada0d7e7999a39e093bc236d195dd8a0a893ba5d78

Contents?: true

Size: 745 Bytes

Versions: 8

Compression:

Stored size: 745 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?
    - unless (fields = fields.reject{ |f| RailsAdmin::config.compact_show_view && (f.formatted_value.nil? || f.formatted_value == '') }).empty?
      .fieldset
        %h4
          = fieldset.label
        - if fieldset.help
          %p= fieldset.help
        %dl
          - fields.each_with_index do |field, index|
            %dt
              %span.label.label-info{class: "#{field.type_css_class} #{field.css_class}"}
                = field.label
            %dd.well
              = field.pretty_value

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_admin-2.3.1 app/views/rails_admin/main/show.html.haml
rails_admin-2.3.0 app/views/rails_admin/main/show.html.haml
rails_admin-2.2.1 app/views/rails_admin/main/show.html.haml
rails_admin-2.2.0 app/views/rails_admin/main/show.html.haml
rails_admin-2.1.1 app/views/rails_admin/main/show.html.haml
rails_admin-2.1.0 app/views/rails_admin/main/show.html.haml
rails_admin-2.0.2 app/views/rails_admin/main/show.html.haml
rails_admin-2.0.1 app/views/rails_admin/main/show.html.haml