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

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/shared/menu_items/_products.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/shared/menu_items/_products.html.haml