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

Loading…
Cancel
Save