Sha256: d292de000a69d9d7c435f0be116b87f6573a1755e6f0a17f0bbd0b20daee3eb5
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
<% content_for :page_title do %> <%= link_to Spree.t(:products), admin_products_path %> / <%= @product.name %> <% end %> <% content_for :sidebar do %> <ul class="nav nav-pills nav-stacked" data-hook="admin_product_tabs"> <%= content_tag :li, :class => ('active' if current == 'Product Details') do %> <%= link_to_with_icon 'edit', Spree.t(:details), edit_admin_product_url(@product) %> <% end if can?(:admin, Spree::Product) %> <%= content_tag :li, :class => ('active' if current == 'Images') do %> <%= link_to_with_icon 'picture', Spree.t(:images), admin_product_images_url(@product) %> <% end if can?(:admin, Spree::Image) %> <%= content_tag :li, :class => ('active' if current == 'Variants') do %> <%= link_to_with_icon 'th-large', Spree.t(:variants), admin_product_variants_url(@product) %> <% end if can?(:admin, Spree::Variant) %> <%= content_tag :li, :class => ('active' if current == 'Product Properties') do %> <%= link_to_with_icon 'list-alt', Spree.t(:properties), admin_product_product_properties_url(@product) %> <% end if can?(:admin, Spree::ProductProperty) %> <%= content_tag :li, :class => ('active' if current == 'Stock Management') do %> <%= link_to_with_icon 'home', Spree.t(:stock), stock_admin_product_url(@product) %> <% end if can?(:stock, Spree::Product) %> </ul> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_backend-3.0.0.rc1 | app/views/spree/admin/shared/_product_tabs.html.erb |