Sha256: d8005614bc97e1a421be5e4f4a45fa96c60d5e9f084b53c2b16134f49249467b

Contents?: true

Size: 755 Bytes

Versions: 14

Compression:

Stored size: 755 Bytes

Contents

- @model_config.show.with(:object => @object, :view => self).visible_groups.each do |fieldset|
  - unless (fields = fieldset.with(:object => @object, :view => self).visible_fields).empty?
    - if !(values = fields.map{ |f| v = f.value; (!v.nil? && v != '' && v != []) ? v : nil }).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|
            - if !values[index].nil? || !RailsAdmin::config.compact_show_view
              %dt.label{:class => "#{field.type_css_class} #{field.css_class}"}= field.label
              %dd
                %pre.prettyprint= field.pretty_value

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
rails_admin-0.1.2 app/views/rails_admin/main/show.html.haml
rails_admin-0.1.1 app/views/rails_admin/main/show.html.haml
rails_admin-0.1.0 app/views/rails_admin/main/show.html.haml
rails_admin-0.0.5 app/views/rails_admin/main/show.html.haml
rails_admin-0.0.4 app/views/rails_admin/main/show.html.haml
rails_admin-0.0.3 app/views/rails_admin/main/show.html.haml
rails_admin-0.0.2 app/views/rails_admin/main/show.html.haml
upstream-rails_admin-1.0.2 app/views/rails_admin/main/show.html.haml
rails_admin-0.0.1 app/views/rails_admin/main/show.html.haml
obitum-rails_admin-0.0.5 app/views/rails_admin/main/show.html.haml
drewda_rails_admin-0.0.1 app/views/rails_admin/main/show.html.haml
obitum-rails_admin-0.0.4 app/views/rails_admin/main/show.html.haml
obitum-rails_admin-0.0.3 app/views/rails_admin/main/show.html.haml
obitum-rails_admin-0.0.2 app/views/rails_admin/main/show.html.haml