Browse Source

Reordering Admin tab panel, putting logs last

eperez-timeinput
Jason Denney 12 years ago
parent
commit
edff478204
  1. 8
      app/components/app_tab_panel.rb

8
app/components/app_tab_panel.rb

@ -1,6 +1,5 @@
class AppTabPanel < Netzke::Basepack::TabPanel
action :sign_out do |c|
c.icon = :door_out
c.text = "Exit"
@ -47,16 +46,15 @@ class AppTabPanel < Netzke::Basepack::TabPanel
wrappedComponent: :transactions_border,
title: "Users/Transactions"}]
end
if can? :manage, ::ActsAsLoggable::Log.all
@@app_tab_panel_items.concat [:logs, :check_ins]
end
if can? :manage, Role
@@app_tab_panel_items.concat [{ layout: :fit,
wrappedComponent: :user_role_joins,
title: "User Roles"},
]
end
if can? :manage, ::ActsAsLoggable::Log.all
@@app_tab_panel_items.concat [:check_ins, :logs]
end
@@app_tab_panel_items.each do |item|
if item.kind_of?(Symbol)
self.class.component item

Loading…
Cancel
Save