Permalink
Browse files

remove empty divs on show page

  • Loading branch information...
1 parent 0a03663 commit c5065323d81023a360ac7718ec0b9769373af38a @bbenezech bbenezech committed Aug 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/rails_admin/main/show.html.haml
@@ -21,7 +21,7 @@
%h4= fieldset.label
= content_tag :div, fieldset.help, :class => "help" if fieldset.help
- fields.each_with_index do |field, index|
- %div.field{:class => "#{field.abstract_model.to_param.singularize}_#{field.name}"}
- - if (value = values[index]) || !RailsAdmin::config.compact_show_view
+ - if (value = values[index]) || !RailsAdmin::config.compact_show_view
+ %div.field{:class => "#{field.abstract_model.to_param.singularize}_#{field.name}"}
%div.label= field.label
%div.value= value || ' - '

0 comments on commit c506532

Please sign in to comment.