Sha256: 7d3946b144e90a8957b8ada61a037bebecf21af97ab7a14d3f8d7c845eddc635
Contents?: true
Size: 949 Bytes
Versions: 24
Compression:
Stored size: 949 Bytes
Contents
- if can?(:index, Product) = forge_menu_item item, forge_products_path, :active => is_active(["products", "product_categories", "sales", "orders"]), :alt_title => "Shopping", :submenu => can?(:create, Product) || can?(:index, ProductCategory) || can?(:index, Order) || can?(:index, Sale) %ul.forge_submenu{ :class => is_active(["products", "product_categories", "orders", "sales"]) ? "#{item} active" : item } = link_to "New Product", new_forge_product_path, :class => ('active' if is_active('products') && params[:action] == "new") if can?(:create, Product) = link_to "Product Categories", forge_product_categories_path, :class => ('active' if is_active('product_categories')) if can?(:index, ProductCategory) = link_to "Orders", forge_orders_path, :class => ('active' if is_active('orders')) if can?(:index, Order) = link_to "Sales", forge_sales_path, :class => ('active' if is_active('sales')) if can?(:index, Sale) .spacer
Version data entries
24 entries across 24 versions & 1 rubygems