Sha256: e41cd6a164f543a481141a37edf00ad40c7ea5c89a08c9f95ea2fff8cf94eda7

Contents?: true

Size: 1.73 KB

Versions: 5

Compression:

Stored size: 1.73 KB

Contents

<% content_for :page_title do %>
  <%= Spree::Product.model_name.human(count: :other) %> &#x2f; <%= @product.name %>
<% end %>

<% 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_with_icon 'edit', Spree.t(: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_with_icon 'picture-o', Spree.t(:images), spree.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::Variant.model_name.human(count: :other),  spree.admin_product_variants_url(@product) %>
      <% end if can?(:admin, Spree::Variant) %>
      <%= content_tag :li, :class => ('active' if current == 'Prices') do %>
        <%= link_to_with_icon 'money', Spree::Price.model_name.human(count: :other),  spree.admin_product_prices_url(@product) %>
      <% end if can?(:admin, Spree::Price) %>
      <%= content_tag :li, :class => ('active' if current == 'Product Properties') do %>
        <%= link_to_with_icon 'tasks', Spree::ProductProperty.model_name.human(count: :other), spree.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 'cubes', Spree.t(:stock_management), spree.admin_product_stock_url(@product) %>
      <% end if can?(:admin, Spree::StockItem) %>
    </ul>
  </nav>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-1.3.2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.3.1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.3.0 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb