Sha256: 4accf2ce28eec1c717135ee1cffeb2fd630b92f23c414be695e5ad403cfe050d

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

Deface::Override.new(
  virtual_path: 'spree/admin/shared/_product_tabs',
  name: 'add_favorite_users_tab_in_product_edit',
  insert_bottom: '[data-hook="admin_product_tabs"]',
  text: %Q{
    <%= content_tag :li, class: ('active' if current == 'Favorite Products') do %>
      <%= link_to Spree.t(:favorites), spree.favorite_users_admin_product_path(@product) %>
    <% end if can?(:admin, Spree::Product) %>
  }
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_favorite_products-2.1.1 app/overrides/add_favorite_users_tab_in_product_edit.rb