From edff478204c5fe0920df7a08aa547e3cb534c705 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 1 Jun 2013 14:46:59 -0400 Subject: [PATCH] Reordering Admin tab panel, putting logs last --- app/components/app_tab_panel.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/components/app_tab_panel.rb b/app/components/app_tab_panel.rb index 39c8fd5..635daa7 100644 --- a/app/components/app_tab_panel.rb +++ b/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