Sha256: 756611a6c58f48310f810c381a608e507d16a7a7c7b40f2cd9dd19152939e038

Contents?: true

Size: 1.71 KB

Versions: 137

Compression:

Stored size: 1.71 KB

Contents

<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
<% admin_breadcrumb(link_to @product.name, spree.admin_product_path(@product)) %>

<% content_for :tabs do %>
  <nav>
    <ul class="tabs" data-hook="admin_product_tabs">
      <%= content_tag :li, class: ('active' if current == 'Product Details') do %>
        <%= link_to t('spree.product_details'), spree.edit_admin_product_url(@product) %>
      <% end if can?(:admin, Spree::Product) %>
      <%= content_tag :li, class: ('active' if current == 'Images') do %>
        <%= link_to t('spree.images'), spree.admin_product_images_url(@product) %>
      <% end if can?(:admin, Spree::Image) && !@product.deleted? %>
      <%= content_tag :li, class: ('active' if current == 'Variants') do %>
        <%= link_to plural_resource_name(Spree::Variant), spree.admin_product_variants_url(@product) %>
      <% end if can?(:admin, Spree::Variant) %>
      <%= content_tag :li, class: ('active' if current == 'Prices') do %>
        <%= link_to plural_resource_name(Spree::Price), spree.admin_product_prices_url(@product) %>
      <% end if can?(:admin, Spree::Price) && !@product.deleted? %>
      <%= content_tag :li, class: ('active' if current == 'Product Properties') do %>
        <%= link_to plural_resource_name(Spree::ProductProperty), spree.admin_product_product_properties_url(@product) %>
      <% end if can?(:admin, Spree::ProductProperty) && !@product.deleted? %>
      <%= content_tag :li, class: ('active' if current == 'Stock Management') do %>
        <%= link_to t('spree.stock_management'), spree.admin_product_stock_url(@product) %>
      <% end if can?(:admin, Spree::StockItem) && !@product.deleted? %>
    </ul>
  </nav>
<% end %>

Version data entries

137 entries across 137 versions & 2 rubygems

Version Path
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.7.0 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.6.1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.6.0 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.6.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.5.0 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/shared/_product_tabs.html.erb