File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class ViewFactory < AbstractViewFactory
1010 :action_items => ActiveAdmin ::Views ::ActionItems ,
1111 :title_bar => ActiveAdmin ::Views ::TitleBar ,
1212 :header => ActiveAdmin ::Views ::Header ,
13+ :footer => ActiveAdmin ::Views ::Footer ,
1314 :dashboard_section => ActiveAdmin ::Views ::DashboardSection ,
1415 :index_scopes => ActiveAdmin ::Views ::Scopes ,
1516 :blank_slate => ActiveAdmin ::Views ::BlankSlate
Original file line number Diff line number Diff line change 1+ module ActiveAdmin
2+ module Views
3+ class Footer < Component
4+
5+ def build
6+ super :id => "footer"
7+ powered_by_message
8+ end
9+
10+ private
11+
12+ def powered_by_message
13+ para "Powered by #{ link_to ( "Active Admin" , "http://www.activeadmin.info" ) } #{ ActiveAdmin ::VERSION } " . html_safe
14+ end
15+
16+ end
17+ end
18+ end
Original file line number Diff line number Diff line change @@ -124,9 +124,7 @@ def skip_sidebar?
124124
125125 # Renders the content for the footer
126126 def build_footer
127- div :id => "footer" do
128- para "Powered by #{ link_to ( "Active Admin" , "http://www.activeadmin.info" ) } #{ ActiveAdmin ::VERSION } " . html_safe
129- end
127+ insert_tag view_factory . footer
130128 end
131129
132130 end
You can’t perform that action at this time.
0 commit comments