Sha256: c92187d1645c805d73208f73c8fff211aa256b7b17cf4482003ce24a9606f165

Contents?: true

Size: 1.49 KB

Versions: 27

Compression:

Stored size: 1.49 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t(:editing_product) %> &ldquo;<%= @product.name %>&rdquo;
<% end %>

<% content_for :sidebar_title do %>
  <span class="sku"><%= @product.sku %></span>
<% end %>

<% content_for :sidebar do %>
  <nav class="menu">
    <ul data-hook="admin_product_tabs">
      <%= content_tag :li, :class => ('active' if current == 'Product Details') do %>
        <%= link_to_with_icon 'edit', Spree.t(:product_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-o', 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 'tasks', Spree.t(:product_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 'cubes', Spree.t(:stock_management), admin_product_stock_url(@product) %>
      <% end if can?(:admin, Spree::StockItem) %>
    </ul>
  </nav>

<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.4 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.0.7 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.0.6 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.2.2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.2.1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.3 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.0.5 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.2.0 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.0.4 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.0.3 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.0 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/shared/_product_tabs.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/shared/_product_tabs.html.erb