Skip to content

Commit c00459c

Browse files
committed
Moved the title within sidebar sections to be rendered within the section.
1 parent 7234da4 commit c00459c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/active_admin/dashboards/renderer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def render_sections(sections)
3030

3131
def render_section(section)
3232
title = content_tag :h3, section.name.to_s.titleize
33-
content = content_tag :div, instance_eval(&section.block), :class => 'dashboard_section', :id => "#{section.name.to_s.downcase.gsub(' ', '_')}_dashboard_section"
34-
title + content
33+
content = content_tag :div, instance_eval(&section.block), :class => 'dashboard_section_content'
34+
content_tag :div, title + content, :class => 'dashboard_section', :id => "#{section.name.to_s.downcase.gsub(' ', '_')}_dashboard_section"
3535
end
3636

3737
def default_welcome_section

0 commit comments

Comments
 (0)