<% u = @current_user tabs = [ { :name => "Start", :url => root_path, :active => ["index", "messages", "tasks"], :subnav => [ { :name => "Members", :url => "/index/foodcoop_members"}, { :name => "Workgroups", :url => "/index/workgroups"}, { :name => "Tasks", :url => "/tasks"}, { :name => "Messages", :url => "/messages/inbox"}, { :name => "My Ordergroup", :url => my_ordergroup_path}, { :name => "My Ordergroup", :url => my_profile_path} ] }, { :name => "Orders", :url => "/ordering", :active => ["orders", "ordering"], :subnav => [ { :name => "Order", :url => "/ordering" }, { :name => "My orders", :url => "/ordering/myOrders" }, { :name => "Manage orders", :url => "/orders", :access? => (u.role_orders?) } ] }, { :name => "Articles", :url => "/articles", :active => ["articles", "suppliers"], :access? => (u.role_article_meta? || u.role_suppliers?), :subnav => [ { :name => "Show articles", :url => "/articles/list" }, { :name => "Categories", :url => "/articles" }, { :name => "Suppliers", :url => suppliers_path, :access? => (u.role_suppliers?) } ] }, { :name => "Finance", :url => "/finance", :active => ["finance", "finance/invoices", "finance/transactions", "finance/balancing"], :access? => (u.role_finance?), :subnav => [ { :name => "Manage accounts", :url => "/finance/transactions" }, { :name => "Balance orders", :url => "/finance/balancing" }, { :name => "Invoices", :url => finance_invoices_path } ] }, { :name => "Administration", :url => "/admin", :active => ["admin", "admin/users", "admin/ordergroups", "admin/workgroups"], :access? => (u.role_admin?), :subnav => [ { :name => "Users", :url => admin_users_path }, { :name => "Ordergroups", :url => admin_ordergroups_path }, { :name => "Workgroups", :url => admin_workgroups_path } ] } ] -%>