Sha256: 5b8708f566c4ded18eea7a19310085e0a789b7ef04f8e660f716e721e3c7b787

Contents?: true

Size: 1.32 KB

Versions: 16

Compression:

Stored size: 1.32 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 == :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), 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.t(:variants),  spree.admin_product_variants_url(@product) %>
    <% end if can?(:admin, Spree::Variant) %>
    <%= content_tag :li, class: ('active' if current == :properties) do %>
      <%= link_to_with_icon 'list-alt', Spree.t(:properties), spree.admin_product_product_properties_url(@product) %>
    <% end if can?(:admin, Spree::ProductProperty) %>
    <%= content_tag :li, class: ('active' if current == :stock) 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

16 entries across 16 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.1 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.0 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.9 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.8 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.7 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.6 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.5 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.4 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.3 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.0.2 app/views/spree/admin/shared/_product_tabs.html.erb