Skip to content

Commit

Permalink
remove empty divs on show page
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenezech committed Aug 3, 2011
1 parent 0a03663 commit c506532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/rails_admin/main/show.html.haml
Expand Up @@ -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.