Sha256: 7e9ec9b3ae9f9269dd7959908933ee8aa85a74d7d68e76481adfdb6379da6bd4
Contents?: true
Size: 1.59 KB
Versions: 35
Compression:
Stored size: 1.59 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 flex-column nav-pills" data-hook="admin_product_tabs"> <%= content_tag :li do %> <%= link_to_with_icon 'edit', Spree.t(:details), edit_admin_product_url(@product), class: "nav-link #{'active' if current == :details}" %> <% end if can?(:admin, Spree::Product) %> <%= content_tag :li do %> <%= link_to_with_icon 'picture', Spree.t(:images), spree.admin_product_images_url(@product), class: "nav-link #{'active' if current == :images}" %> <% end if can?(:admin, Spree::Image) && !@product.deleted? %> <%= content_tag :li do %> <%= link_to_with_icon 'th-large', Spree.t(:variants), spree.admin_product_variants_url(@product), class: "nav-link #{'active' if current == :variants}" %> <% end if can?(:admin, Spree::Variant) && !@product.deleted? %> <%= content_tag :li do %> <%= link_to_with_icon 'list-alt', Spree.t(:properties), spree.admin_product_product_properties_url(@product), class: "nav-link #{'active' if current == :properties}" %> <% end if can?(:admin, Spree::ProductProperty) && !@product.deleted? %> <%= content_tag :li do %> <%= link_to_with_icon 'home', Spree.t(:stock), stock_admin_product_url(@product), class: "nav-link #{'active' if current == :stock}" %> <% end if can?(:admin, Spree::StockItem) && !@product.deleted? %> </ul> <% end %>
Version data entries
35 entries across 35 versions & 1 rubygems