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

Version Path
rails_admin-0.5.0 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.9 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.8 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.7 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.6 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.5 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.4 app/views/rails_admin/main/show.html.haml
rails_admin-lbgraham-0.4.2 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.3 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.2 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.1 app/views/rails_admin/main/show.html.haml
rails_admin-0.4.0 app/views/rails_admin/main/show.html.haml
rails_admin-0.3.0 app/views/rails_admin/main/show.html.haml