Sha256: ceca6664d03b5973749e3a71fc725a65034643005f050501ec42e0c420353315

Contents?: true

Size: 1.4 KB

Versions: 57

Compression:

Stored size: 1.4 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) && !@product.deleted? %>
    <%= 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) && !@product.deleted? %>
    <%= 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) && !@product.deleted? %>
    <%= 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?(:admin, Spree::Stock) && !@product.deleted? %>
  </ul>
<% end %>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
spree_backend-3.4.6 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.7.0 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.2.9 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.14 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.7.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.6 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.5 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.4 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.3 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.2 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.1 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.0 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.5.0 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.3.6 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.2.8 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.1.13 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.6.0.rc1 app/views/spree/admin/shared/_product_tabs.html.erb
spree_backend-3.5.0.rc2 app/views/spree/admin/shared/_product_tabs.html.erb